From 8e4ba9baab53a20825dd8ebc31fd811c7fb29f26 Mon Sep 17 00:00:00 2001 From: alexandraRamanenka Date: Wed, 10 Jan 2024 09:12:56 -0500 Subject: [PATCH] FIO-7631: Fixes an issue where timezone is added to the date in PDF download for TextField with CalendarWidget --- src/widgets/CalendarWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/CalendarWidget.js b/src/widgets/CalendarWidget.js index fd4995bc78..417c500885 100644 --- a/src/widgets/CalendarWidget.js +++ b/src/widgets/CalendarWidget.js @@ -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); }