Recipe Created Time on Main Screen
I don't know if this is a bug, or a designed feature, but on the All Recipes screen, the 'time created' tag is in UTC on my installation. I'm in the US, NY timezone. I would expect the time created tag to be locale related, ie my currently set time zone.
Description A clear and concise description of what the bug is.
Reproduction Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Actual behavior Please describe in clear statements what is happening in reality.
Screenshots If applicable, add screenshots to help explain your problem.
Browser Which browser are you using?
Versions Nextcloud server version: 25.0.2 Cookbook version: 0.10.1 Database system: MySQL/MariaDB/PostgreSQL/Sqlite
Thank you for your report. I am able to reproduce this.
This only happens in RecipeList. In RecipeView, the date is localised correctly.
I narrowed this difference down to RecipeView having a timestamp ending in +0000 whereas the timestamps in RecipeList do not (yyyy-mm-dd hh-mm-ss).
The timestamp from RecipeView comes from the recipe's JSON file. The timestamps in RecipeList come from the database (this should be consistent IMO).
@christianlupus maybe you can weigh in here on how to proceed. I'm not too familiar with the backend stuff. A hacky fix could be to check in the frontend if the timstamp ends with a timezone, and add +0000 if it doesn't.
The right way would be a fix in teh backend to store the time zone as well. Then, a repair step can be installed to extract the time zone from the JSON files and put them into the DB columns.
On reading the list, the backend can append the time zone accordingly.
I will assign it to the backend to have a look into this. Once fixed the backend, we have to revisit this issue and see if it still persists.