https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36217

--- Comment #27 from Johanna Räisä <[email protected]> ---
(In reply to Jonathan Druart from comment #26)
> Please test the patch, it addresses the issues correctly (I think!)
> 
> Did you look at js-date-format.inc?
> 
> $datetime is dealing with the server's timezone.
> 
> To test it:
> Set timezone to America/Argentina/Buenos_Aires, which is UTC-3 (in
> $KOHA_CONF)
> Client is CEST (UTC+2)
> 
> I am doing my test now, it is 
> 4:20 in Buenos Aires
> 7:20 UTC
> 9:20 CEST
> 
> In the console:
> let now = new Date();
> now
> Date Thu Sep 05 2024 09:20:38 GMT+0200 (Central European Summer Time)
> 
> now.toISOString()
> "2024-09-05T07:20:38.077Z"
> 
> $datetime(now.toISOString(), { dateformat: 'iso' });
> "2024-09-05T04:20:38.3838-03:00"


I added UTC-3 to the timezone and tested this.

now = Thu Sep 05 2024 13:16:55 GMT+0300 (Eastern European Summer Time)
now_with_server_tz = 2024-09-05T13:16:55.5555+03:00

I'm not sure if there is some other setting I should add, but I got the same
result after adding UTC-3 to $KOHA_CONF

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to