app/packs/js/controllers/fields/date_field_controller.js in avo-1.3.5.pre.1 vs app/packs/js/controllers/fields/date_field_controller.js in avo-1.3.5
- old
+ new
@@ -31,10 +31,10 @@
let currentValue
// enable timezone display
if (enableTime) {
- currentValue = DateTime.fromISO(this.inputTarget.value, { zone: window.Avo.configuration.timezone })
+ currentValue = DateTime.fromISO(this.inputTarget.value, { zone: window.timezone })
currentValue = currentValue.setZone(this.inputTarget.dataset.timezone)
currentValue = currentValue.toISO()
options.dateFormat = 'Y-m-d H:i:S'
// eslint-disable-next-line camelcase