aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJacob Evans <dekz@dekz.net>2018-10-17 17:34:10 +0800
committerGitHub <noreply@github.com>2018-10-17 17:34:10 +0800
commit78e6063d929368cd08c324cc5e7e5b48af0079f6 (patch)
tree2756e70d1ea787dac69281c968411dcd02665cc2 /packages
parent336e456984e24807e3d0d5017de4ea8d1e9beb19 (diff)
parent0013bafc62571bc81f2984974c4893c3770b1786 (diff)
downloaddexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar.gz
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar.bz2
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar.lz
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar.xz
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.tar.zst
dexon-sol-tools-78e6063d929368cd08c324cc5e7e5b48af0079f6.zip
Merge pull request #1143 from 0xProject/fix/monorepo-scripts/changelog-utc
[monorepo-scripts] Format changelog dates as UTC timezone +0:00
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/CHANGELOG.json9
-rw-r--r--packages/monorepo-scripts/src/utils/changelog_utils.ts3
2 files changed, 11 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/CHANGELOG.json b/packages/monorepo-scripts/CHANGELOG.json
index 3b8684fab..cf7a22bb7 100644
--- a/packages/monorepo-scripts/CHANGELOG.json
+++ b/packages/monorepo-scripts/CHANGELOG.json
@@ -1,5 +1,14 @@
[
{
+ "version": "1.0.6",
+ "changes": [
+ {
+ "note": "Render date formats in UTC to prevent conflicts when publishing in different timezones.",
+ "pr": 1143
+ }
+ ]
+ },
+ {
"timestamp": 1534210131,
"version": "1.0.5",
"changes": [
diff --git a/packages/monorepo-scripts/src/utils/changelog_utils.ts b/packages/monorepo-scripts/src/utils/changelog_utils.ts
index 8058d222b..0b46bf670 100644
--- a/packages/monorepo-scripts/src/utils/changelog_utils.ts
+++ b/packages/monorepo-scripts/src/utils/changelog_utils.ts
@@ -19,7 +19,8 @@ CHANGELOG
export const changelogUtils = {
getChangelogMdTitle(versionChangelog: VersionChangelog): string {
- const date = moment(`${versionChangelog.timestamp}`, 'X').format('MMMM D, YYYY');
+ // Use UTC rather than the local machines time (formatted date time is +0:00)
+ const date = moment.utc(`${versionChangelog.timestamp}`, 'X').format('MMMM D, YYYY');
const title = `\n## v${versionChangelog.version} - _${date}_\n\n`;
return title;
},