Open YairLevi opened 1 year ago
Did you try explicitly setting the TZ in Go?
Did you try explicitly setting the TZ in Go?
Do you mean using the .In(...)
function? if so, I did.
Also tried changing the time.Local
like a solution suggested, and didn't work (made sure to put the right location.
When I printed time.Now()
it prints the current time in my local zone correctly,
but when I send a Date from frontend to wails, it changes it to UTC.
Description
Couldn't find someone who specified this issue yet. When I send a Date type to wails from the JS, it changes the time (zone). for example, I send 20:00 (not the current time, just any time at all), and when i print the time in the js its the same, but the moment wails receives it from the frontend, it turns to 17:00, UTC. why is this happening and how can I fix this?
To Reproduce
Expected behaviour
I expect the time to remain unchanged when it reaches wails.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response