-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/staging' into eval-main
- Loading branch information
Showing
28 changed files
with
771 additions
and
871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
elixir 1.16.3 | ||
erlang 26.2.5 | ||
nodejs 20.14.0 | ||
yarn 1.22.5 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
// TODO: Move date and timezone related functions to this file | ||
// export const localDate = (datetime) => { | ||
|
||
export const localDate = (datetime) => { | ||
let timeZone = moment.tz.guess(true) | ||
let local_time = moment.tz(datetime, timeZone).format("MM/DD/YYYY") | ||
|
||
return local_time | ||
let dateObj = new Date(datetime); | ||
let month = (dateObj.getMonth() + 1).toString().padStart(2, '0'); | ||
let day = dateObj.getDate().toString().padStart(2, '0'); | ||
let year = dateObj.getFullYear(); | ||
|
||
return `${month}/${day}/${year}`; | ||
} | ||
|
||
|
||
export default { | ||
localDate | ||
} |
Oops, something went wrong.