Skip to content

Commit

Permalink
Merge pull request #24446 from waterim/feat-19810-Replace-the-moment-…
Browse files Browse the repository at this point in the history
…library

DateUtils refactor, remove moment from the code, timezone fixes.
  • Loading branch information
mountiny authored Aug 21, 2023
2 parents e3074c4 + 9305d75 commit d09faa6
Show file tree
Hide file tree
Showing 8 changed files with 629 additions and 103 deletions.
8 changes: 8 additions & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ const CONST = {
MOMENT_FORMAT_STRING: 'YYYY-MM-DD',
SQL_DATE_TIME: 'YYYY-MM-DD HH:mm:ss',
FNS_FORMAT_STRING: 'yyyy-MM-dd',
LOCAL_TIME_FORMAT: 'hh:mm a',
WEEKDAY_TIME_FORMAT: 'eeee',
MONTH_DAY_ABBR_FORMAT: 'MMM d',
SHORT_DATE_FORMAT: 'MM-dd',
MONTH_DAY_YEAR_ABBR_FORMAT: 'MMM d, yyyy',
FNS_TIMEZONE_FORMAT_STRING: "yyyy-MM-dd'T'HH:mm:ssXXX",
FNS_DB_FORMAT_STRING: 'yyyy-MM-dd HH:mm:ss.SSS',
LONG_DATE_FORMAT_WITH_WEEKDAY: 'eeee, MMMM d, yyyy',
UNIX_EPOCH: '1970-01-01 00:00:00.000',
MAX_DATE: '9999-12-31',
MIN_DATE: '0001-01-01',
Expand Down
Loading

0 comments on commit d09faa6

Please sign in to comment.