Skip to content

Commit

Permalink
fix: timezone issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vipzhicheng committed Apr 30, 2022
1 parent 865dd03 commit b28efbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.0.9

- fix: timezone issue

## v0.0.8

- feat: add block embed action
Expand Down
2 changes: 1 addition & 1 deletion src/stores/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const processBlock = async (block: BlockEntity, destination: Destination) => {
}
// TODO validate the journal
targetPage = formatInTimeZone(
new Date(journal),
journal,
Intl.DateTimeFormat().resolvedOptions().timeZone,
config.preferredDateFormat
);
Expand Down

0 comments on commit b28efbe

Please sign in to comment.