-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: migrate from momentjs to dayjs #6724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
009b565
added dayjs
Rohit3523 1fb0b65
removed moment
Rohit3523 5791c2f
chore: format code with Prettier [skip ci]
Rohit3523 b88297e
Merge branch 'develop' into dayjs
Rohit3523 193091b
lint fix
Rohit3523 55dbc2f
chore: format code with Prettier [skip ci]
Rohit3523 790fd3c
Added localizedFormat
Rohit3523 382746d
handle null condition
Rohit3523 3722ab3
added no key in dayjs locale
Rohit3523 3a245d2
chore: format code with Prettier [skip ci]
Rohit3523 004b2b1
added millisecond in passcord
Rohit3523 eab2bdf
Merge branches 'dayjs' and 'dayjs' of https://github.com/RocketChat/R…
Rohit3523 2043bfb
Merge branch 'develop' into dayjs
Rohit3523 d8beb0b
Merge branch 'develop' into dayjs
diegolmello f282e9a
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
Rohit3523 49cdc05
Merge branch 'develop' into dayjs
diegolmello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import dayjs from 'dayjs'; | ||
| import utc from 'dayjs/plugin/utc'; | ||
| import timezone from 'dayjs/plugin/timezone'; | ||
| import calendar from 'dayjs/plugin/calendar'; | ||
| import relativeTime from 'dayjs/plugin/relativeTime'; | ||
| import localizedFormat from 'dayjs/plugin/localizedFormat'; | ||
|
|
||
| import 'dayjs/locale/en'; | ||
| import 'dayjs/locale/ar'; | ||
| import 'dayjs/locale/bn'; | ||
| import 'dayjs/locale/cs'; | ||
| import 'dayjs/locale/de'; | ||
| import 'dayjs/locale/es'; | ||
| import 'dayjs/locale/fi'; | ||
| import 'dayjs/locale/fr'; | ||
| import 'dayjs/locale/hi'; | ||
| import 'dayjs/locale/hu'; | ||
| import 'dayjs/locale/it'; | ||
| import 'dayjs/locale/ja'; | ||
| import 'dayjs/locale/nl'; | ||
| import 'dayjs/locale/nb'; | ||
| import 'dayjs/locale/nn'; | ||
| import 'dayjs/locale/pt-br'; | ||
| import 'dayjs/locale/pt'; | ||
| import 'dayjs/locale/ru'; | ||
| import 'dayjs/locale/sl'; | ||
| import 'dayjs/locale/sv'; | ||
| import 'dayjs/locale/ta'; | ||
| import 'dayjs/locale/te'; | ||
| import 'dayjs/locale/tr'; | ||
| import 'dayjs/locale/zh-cn'; | ||
| import 'dayjs/locale/zh-tw'; | ||
|
|
||
| dayjs.extend(utc); | ||
| dayjs.extend(timezone); | ||
| dayjs.extend(calendar); | ||
| dayjs.extend(relativeTime); | ||
| dayjs.extend(localizedFormat); | ||
|
|
||
| export default dayjs; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.