You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
I'm confused if it's not possible to fix this in a general way. It seems to me like grocy is not handling track_date_only chores correctly, but they claim it is not an issue.
Just to note it also here what's the current state (since ever) about date-times in grocy to avoid confusion:
No timezone information is handled anywhere currently, so any date-time, on any API endpoint, needs to be provided without timezone information (or it would be ignored anyways).
So to make time related things work, all parts involved need to be in the same timezone - there are 3 settings:
The client (client side frontend JS uses that)
The OS setting of the server (SQLite uses that)
The php.ini setting date.timezone (PHP uses that)
This should be easily achievable in self hosted setups, when not already the case.
Timezone support in general is already tracked in grocy/grocy#214.
There is also the API endpoint /system/time which returns server-side time information:
time_local, time_local_sqlite3 and the local client time need to match.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I initially filed this issue on main grocy codebase, but it was closed as NAB
grocy/grocy#1799
When pygrocy calls track chores, it submits tracked time in UTC time (+00:00)
See how track chore called at 4:56pm local time is converted to a timestamp in utc time (12:56am+00:00)
Then in grocy they throw away the timestamp code
So a chore executed in the afternoon of 2/25 is tracked in grocy server as completed on 2/26.
Can the track chore api be updated to submit the timestamp in the users local timezone, so that when grocy discards the timezone, the date is correct?
So submit the timestamp as 16:56:00-08:00, instead of 00:56:00+00:00.
The text was updated successfully, but these errors were encountered: