@beyonk/date-utils
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "3.0.1", | ||
"tag": "@beyonk/date-utils_v3.0.1", | ||
"date": "Wed, 26 Aug 2020 13:47:45 GMT", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "litn" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "3.0.0", | ||
@@ -7,0 +19,0 @@ "tag": "@beyonk/date-utils_v3.0.0", |
# Change Log - @beyonk/date-utils | ||
This log was last generated on Thu, 23 Jul 2020 09:28:23 GMT and should not be manually modified. | ||
This log was last generated on Wed, 26 Aug 2020 13:47:45 GMT and should not be manually modified. | ||
## 3.0.1 | ||
Wed, 26 Aug 2020 13:47:45 GMT | ||
### Patches | ||
- litn | ||
## 3.0.0 | ||
@@ -6,0 +13,0 @@ Thu, 23 Jul 2020 09:28:23 GMT |
@@ -38,3 +38,3 @@ import dayjs from 'dayjs/esm' | ||
function humanDateNoTimezone (d) { | ||
const format = `Do MMM YYYY` | ||
const format = 'Do MMM YYYY' | ||
return utcDate(d).format(format) | ||
@@ -74,3 +74,3 @@ } | ||
for (let d = 0 ; d < limit ; d += step) { | ||
for (let d = 0; d < limit; d += step) { | ||
current = current.add(step, 'days') | ||
@@ -77,0 +77,0 @@ callback(schedule, current) |
@@ -8,3 +8,3 @@ import { findTimeZone, getZonedTime, populateTimeZones, setTimeZone } from 'timezone-support/dist/lookup-convert' | ||
function updateTime(instance, zonedTime, convertTimezone) { | ||
function updateTime (instance, zonedTime, convertTimezone) { | ||
const { year, month, day, dayOfWeek, hours, minutes, epoch, zone } = zonedTime | ||
@@ -39,7 +39,7 @@ const date = instance.$d | ||
function padToTwoDigits(number) { | ||
function padToTwoDigits (number) { | ||
return number > 9 ? number : `0${number}` | ||
} | ||
function formatTimeZoneOffset(offset, separator) { | ||
function formatTimeZoneOffset (offset, separator) { | ||
let sign | ||
@@ -57,3 +57,3 @@ if (offset <= 0) { | ||
function formatTimezoneTokens(instance, format) { | ||
function formatTimezoneTokens (instance, format) { | ||
const str = format || FORMAT_DEFAULT | ||
@@ -121,2 +121,2 @@ return str.replace(/z|ZZ|Z/g, (match) => { | ||
} | ||
} | ||
} |
@@ -51,2 +51,2 @@ import { expect } from '@hapi/code' | ||
}) | ||
}) | ||
}) |
{ | ||
"name": "@beyonk/date-utils", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Beyonk Date Utils", | ||
@@ -5,0 +5,0 @@ "author": "Antony Jones <aj@desirableobjects.co.uk>", |
11667
354