WordPress / wporg-gp-translation-events

Translation Events on WordPress.org
https://translate.wordpress.org/events/
GNU General Public License v2.0
13 stars 2 forks source link

Fix event times stored in wrong timezone in the database #355

Closed akirk closed 1 month ago

akirk commented 2 months ago

Fixes #354

When storing an event in another timezone we need to convert it to UTC before saving it to the db: Screenshot 2024-09-17 at 14 36 47

9am in Los Angeles needs to be saved as 4pm UTC.

When editing the event, we need to convert it back into the even timezone so that the local time is being edited.