Ranged date field ranged saves dates minus one - PHP cms
The date field (ranged in this case) always saves the dates a day before.
How to Reproduce
field: mode: range time_enabled: false time_required: false earliest_date: '2020-01-01' full_width: true inline: true columns: 1 rows: 1 type: date listable: hidden instructions: 'When is the climate adaptation week?' display: 'Climate adaptation week'
Statamic 3.0.2 Pro Laravel 7.26.1 PHP 7.4.6 No addons installed
Install method (choose one): - Starter Kit Peak
Update: tested with the non ranged datepicker. That one works fine. It's the ranged picker that's unusable atm.
Here's a little demo package. Go to the globals -> configuration, save a ranged date and refresh the page.
Odd. Seems fine to me, even in the site you zipped up. Tried multiple browsers.
Really odd. Maybe it’s fixed in the latest releases. Will check later tonight and report back Sir.
Still here. Just like in #2565 I can give you access to the same repo with this issue.
Just added you to https://github.com/studio1902/klimaatadaptatiegroningen. Let me know if that doesn't work for you. The ranged picker with this issue is on Globals > Configuration.
I'm now thinking: since you couldn't replicate this in my previous zip you probably also can't on this repo. Could this be a local/timezone thing?
Last but not least. A little gif to prove I'm not talking nonsense here:
the off by one is definitely a timezone issue. Solved this in a (non-Statamic) project. Likely the front end is not setting to the server's timezone.
I can find the check in my project that fixed this if needed
same for me. looks fine after saving, but when you reload, you see the date - 1
I have the same problem, any ideas on how to give you more info in order to solve this?
- realsense-ros initial_reset option causes crashes with multiple driver instances C++
- Running python3 script results in numba error - Python numba
- Rails3 syntax - Ruby geokit-rails
- Feature Request: I can haz .yml? - Python pre-commit
- arduino-cli panic: runtime error: invalid memory address or nil pointer dereference - Go
- electron React DevTools and Redux DevTools tabs sometimes not appearing Electron@9.0.0 - Cplusplus