Skip to content

Commit

Permalink
Merge pull request #1293 from dpc-sdp/bugfix/format-date
Browse files Browse the repository at this point in the history
[SRM-1505] add default timeZone for formatDate
  • Loading branch information
dylankelly authored Aug 16, 2024
2 parents 22beb71 + 4c16b66 commit 9e18f07
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 9e18f07

Please sign in to comment.