maniek35187
maniek35187

I have strange problem with saving date field using date picker on backend. When i choose date 28-07-2019 system pass value like this: 2019-07-27+22:00:00. Fields.yaml looks like this: datefield: label: 'Label name' mode: date span: auto type: datepicker default: now format: d-m-Y

Field type in database is date. When i change type to timestamp date is saved correctly.

Last updated

maniek35187
maniek35187

Thanks to LukeTowers i found the solutions. ignoreTimezone: true has to be set in field parameters in yaml file for datepicker field.

Francisco Guerrero
tom9466
tom9466

I'm having the same issue with a timestamp field. Here's my fields.yaml field:

    published_at:
        label: 'Published Date'
        mode: datetime
        span: full
        required: 1
        type: datepicker
        commentAbove: 'Exact date and time this video will be published online.'
        ignoreTimezone: true

Should this work? Thanks

Maz
Maz

tom9466 said:

I'm having the same issue with a timestamp field. Here's my fields.yaml field:

   published_at:
       label: 'Published Date'
       mode: datetime
       span: full
       required: 1
       type: datepicker
       commentAbove: 'Exact date and time this video will be published online.'
       ignoreTimezone: true

Should this work? Thanks

It should, I had the same problem here and the above solution worked perfectly for me:

    date_end:
        label: 'romainmazb.appointment::lang.holidays.labels.date_end'
        mode: datetime
        span: auto
        type: datepicker
        ignoreTimezone: true

1-5 of 5