Skip to content

Commit

Permalink
FIO-7631: Fixes an issue where timezone is added to the date in PDF d…
Browse files Browse the repository at this point in the history
…ownload for TextField with CalendarWidget (#5451)
  • Loading branch information
alexandraRamanenka authored Jan 16, 2024
1 parent ec40417 commit 4dfdfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/CalendarWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ export default class CalendarWidget extends InputWidget {
return (date, format) => {
// Only format this if this is the altFormat and the form is readOnly.
if (this.settings.readOnly && (format === this.settings.altFormat)) {
if (this.loadZones()) {
if (!this.settings.enableTime || this.loadZones()) {
return Flatpickr.formatDate(date, format);
}

Expand Down

0 comments on commit 4dfdfb1

Please sign in to comment.