Skip to content
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

fix(datetime-widget): revert default date format to include timezone #7165

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-test/backends/azure/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/bitbucket/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/git-gateway/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/gitea/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/gitlab/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
1 change: 1 addition & 0 deletions dev-test/backends/proxy/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ collections:
- label: Publish Date
name: date
widget: datetime
format: 'YYYY-MM-DDTHH:mm'
- label: Description
name: description
widget: text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DateTimeControl extends React.Component {

getFormat() {
const { field } = this.props;
const format = field?.get('format') || 'YYYY-MM-DDTHH:mm';
const format = field?.get('format') || 'YYYY-MM-DDTHH:mm:ss.SSS[Z]';
const dateFormat = field?.get('date_format');
const timeFormat = field?.get('time_format');
let inputFormat = 'YYYY-MM-DDTHH:mm';
Expand Down
Loading