Skip to content

Commit

Permalink
fix_format_in_ios (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho authored Jun 4, 2023
1 parent 834fbf0 commit 9c0f616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function getCurrentDate() {

export function displayLocaleDate(ts: string) {
// const timestampFromDb = "2023-04-16 11:10:48.000"; // assume this is the value retrieved from the database
const dateObj = new Date(ts)
const dateObj = new Date(ts.replaceAll('-', '/'))

const dateString = `${dateObj.toLocaleDateString()} ${dateObj.toLocaleTimeString()}`

Expand Down

0 comments on commit 9c0f616

Please sign in to comment.