-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '56/shared-rails-phoenix-session' of github.com:GSA/Chal…
…lenge_gov into 56/shared-rails-phoenix-session * '56/shared-rails-phoenix-session' of github.com:GSA/Challenge_gov: (32 commits) update postgrex, ecto_sql, ecto, wallabye versions Configure SSL option for database Set up eval space portal deploy NG can't submit or create new Challenges merge if/end issues closing if fix testing non-gov validation, logs and testing dependency diverge 3.4 -> 3.9.2 remove code non-gov New yarn.lock Revert "Update jquery to 3.7.1" Update jquery to 3.7.1 configure Nix to use default node version 20.15.1 Update jquery to 3.7.1 Non gov-mil users yarn update assets Dependencies: row 5 #1358 Upgrade yarn in staging phases start & end phases start & end ...
- Loading branch information
Showing
36 changed files
with
891 additions
and
912 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 |
---|---|---|
|
@@ -71,5 +71,5 @@ yarn.lock | |
/otp-OTP-24.0.2/ | ||
/otp-OTP-24.1.2/ | ||
|
||
.nix-hex | ||
.nix-mix | ||
/.nix-hex/ | ||
/.nix-mix/ |
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.