-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: datetime to support custom date and time formats (#7091)
* refactor: datetime to support custom date and time formats * refactor: improve date formatting * fix: fix dev test script * test: update fixtures * test: set timezone for ci e2e tests * test: update jest * fix: work in progress on datetime control * fix: date and time formatting, handle picker_utc * fix: remove undefined variable, format * fix: jest-environment-jsdom version * refactor: dayjs imports, getFormat and onInputChange functions * fix: set default value * fix: lint datetime control --------- Co-authored-by: Anze Demsar <[email protected]>
- Loading branch information
1 parent
8207143
commit a07a85b
Showing
89 changed files
with
723 additions
and
587 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
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
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
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 |
---|---|---|
|
@@ -758,7 +758,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAwLjAwMFoKZGVzY3JpcHRpb246IGZpcnN0IGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBmaXJzdCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMQotLS0KZmlyc3QgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiBmaXJzdCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogZmlyc3QgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzEKLS0tCmZpcnN0IGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
@@ -1184,7 +1184,7 @@ | |
"status": 200 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-second-title\",\"commit_message\":\"Create Post “1970-01-01-second-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-second-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBzZWNvbmQgdGl0bGUKZGF0ZTogMTk3MC0wMS0wMVQwMDowMDowMC42MDBaCmRlc2NyaXB0aW9uOiBzZWNvbmQgZGVzY3JpcHRpb24KY2F0ZWdvcnk6IHNlY29uZCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMgotLS0Kc2Vjb25kIGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-second-title\",\"commit_message\":\"Create Post “1970-01-01-second-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-second-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBzZWNvbmQgdGl0bGUKZGF0ZTogMTk3MC0wMS0wMVQwMTowMApkZXNjcmlwdGlvbjogc2Vjb25kIGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBzZWNvbmQgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzIKLS0tCnNlY29uZCBib2R5Cg==\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
@@ -1687,7 +1687,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-third-title\",\"commit_message\":\"Create Post “1970-01-01-third-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-third-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiB0aGlyZCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAxLjIwMFoKZGVzY3JpcHRpb246IHRoaXJkIGRlc2NyaXB0aW9uCmNhdGVnb3J5OiB0aGlyZCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMwotLS0KdGhpcmQgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-third-title\",\"commit_message\":\"Create Post “1970-01-01-third-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-third-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiB0aGlyZCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiB0aGlyZCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogdGhpcmQgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzMKLS0tCnRoaXJkIGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
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 |
---|---|---|
|
@@ -758,7 +758,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAwLjAwMFoKZGVzY3JpcHRpb246IGZpcnN0IGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBmaXJzdCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMQotLS0KZmlyc3QgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiBmaXJzdCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogZmlyc3QgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzEKLS0tCmZpcnN0IGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
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 |
---|---|---|
|
@@ -758,7 +758,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAwLjAwMFoKZGVzY3JpcHRpb246IGZpcnN0IGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBmaXJzdCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMQotLS0KZmlyc3QgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiBmaXJzdCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogZmlyc3QgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzEKLS0tCmZpcnN0IGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
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 |
---|---|---|
|
@@ -759,7 +759,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAwLjAwMFoKZGVzY3JpcHRpb246IGZpcnN0IGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBmaXJzdCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMQotLS0KZmlyc3QgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiBmaXJzdCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogZmlyc3QgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzEKLS0tCmZpcnN0IGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
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 |
---|---|---|
|
@@ -759,7 +759,7 @@ | |
"status": 404 | ||
}, | ||
{ | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAwOjAwOjAwLjAwMFoKZGVzY3JpcHRpb246IGZpcnN0IGRlc2NyaXB0aW9uCmNhdGVnb3J5OiBmaXJzdCBjYXRlZ29yeQp0YWdzOgogIC0gdGFnMQotLS0KZmlyc3QgYm9keQo=\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"body": "{\"branch\":\"cms/posts/1970-01-01-first-title\",\"commit_message\":\"Create Post “1970-01-01-first-title”\",\"actions\":[{\"action\":\"create\",\"file_path\":\"content/posts/1970-01-01-first-title.md\",\"content\":\"LS0tCnRlbXBsYXRlOiBwb3N0CnRpdGxlOiBmaXJzdCB0aXRsZQpkYXRlOiAxOTcwLTAxLTAxVDAxOjAwCmRlc2NyaXB0aW9uOiBmaXJzdCBkZXNjcmlwdGlvbgpjYXRlZ29yeTogZmlyc3QgY2F0ZWdvcnkKdGFnczoKICAtIHRhZzEKLS0tCmZpcnN0IGJvZHkK\",\"encoding\":\"base64\"}],\"start_branch\":\"master\",\"author_name\":\"decap\",\"author_email\":\"[email protected]\"}", | ||
"method": "POST", | ||
"url": "/.netlify/git/gitlab/repository/commits", | ||
"headers": { | ||
|
Oops, something went wrong.