-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving in site date format crashes site. #2394
Comments
Downloading the latest Grav+admin bundle, removing the user directory, and copying my entire user directory into the folder to replace it seems to have fixed it. |
Ok, so first off the default is US Dates with slashes ( If you want to use Euro format even with slashes, you just set it in the configuration: system -> pages -> dateformat -> default. Set this to That all said, it shouldn't error out on a bad date, it should just fallback to the timestamp of the file if it can't parse the date correctly, so i've fixed that for the next release. |
Hi - I am still getting this problem, but only on my main installation. My development site is fine. And it only happens on the admin page - if I change the date in the page with an editor, the change is reflected in the published page, but no matter what I do, I get an error on the admin page. I try clearing the cache etc, but still get the error. If I add or modify a page on the dev machine and copy it to the server it is fine - I've set the pages-> dateformat->default to d/m/Y (always has been), and I have copied my whole user directory to the server. Could it be some php setting? Both have the time and date set to UTC, and the timezone set to Auckland/Pacific. |
And another thing - the date picker in the admin page puts the date as 01/02/2024 12:00 am on my local machine, but as 01/02/2024 on the server ... |
BTW - my development site is using the grav server, the main site is using nginx - don't know if that makes a difference. I don't think I am actually using the short date anywhere, so I've just changed the page format to m/d/Y h:i a. Seems to work now. |
Hi - whenever I save a file with a date greater than the 12 of the month, I get a 'Crickey there was an error', and the whole page is an error - with
An exception has been thrown during the rendering of a template ("Failed to parse time string (13/11/2024) at position 0 (1): Unexpected character").
When I open the page in a text editor, and change or remove the date, the page still fails.
No matter what I do, I still get this error. I've cleared the cache, deleted the cache, restarted the server and so on but it still errors on the date - even when it is no longer there. Caching is also disabled.
The only way to save the page is to delete it in the admin interface, add a new one and make sure the date is not greater than the 12th of the month.
Any solution to this?
The text was updated successfully, but these errors were encountered: