Panel/Kirby adds one day to the selected date

when I select a date in a date field, like 2019-08-15, then the numbering of the folder, based on that date, becomes 2019-08-16. Sometimes, saving the page modifies the input to match the +1 day.

someone help

hereā€™s my blueprint for the date field:

from:
    label: Start Date
    type: date
    width: 1/2
    default: today

and my input in the panel:

hereā€™s what I have for the numbering:

num: "{{ page.from.toDate('Ymd') }}"

and what the folder is labeled:

56%20PM

and hereā€™s the info code:

info: '{{ page.from.toDate('M d Y')}}'

and how it appears in the panel:

37%20PM

I have reproduced the problem consistently and it is happening on multiple local installs of Kirby using different templates and Iā€™ve noticed it also happens on one of my live installs, but since the date isnā€™t too important it hasnā€™t bothered me until now.

none of this is any different from the samples and from what I can research, so I think it might have something to do with how the panel is processing my input?

See this bug description:

1 Like

resolved this by defining the timezone in the config file, but havenā€™t checked how this is affected by another timezone yet.