Skip to content

Commit

Permalink
fix(@dpc-sdp/ripple-ui-core): add default timeZone for formatDate
Browse files Browse the repository at this point in the history
  • Loading branch information
David Featherston committed Aug 13, 2024
1 parent 3a3080b commit 4c16b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ripple-ui-core/src/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const formatDate = (
): string => {
const date = new Date(value)

const defaultOptions: Intl.DateTimeFormatOptions = { dateStyle: 'medium' }
const defaultOptions: Intl.DateTimeFormatOptions = { dateStyle: 'medium', timeZone: 'Australia/Melbourne' }

options = { ...defaultOptions, ...options }

Expand Down

0 comments on commit 4c16b66

Please sign in to comment.