From 4dfdfb185b951acff6f86a27a10a7a684e51a336 Mon Sep 17 00:00:00 2001 From: alexandraRamanenka <60643585+alexandraRamanenka@users.noreply.github.com> Date: Tue, 16 Jan 2024 07:29:31 -0500 Subject: [PATCH] FIO-7631: Fixes an issue where timezone is added to the date in PDF download for TextField with CalendarWidget (#5451) --- 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); }