EventON timestamps store local time as UTC, breaking exports off WordPress sites
EventON, a popular WordPress events calendar available on CodeCanyon and wordpress.org, stores event start and end times in a non-standard way that can cause errors during data migration. Although the values in fields evcal_srow and evcal_erow appear to be standard Unix timestamps, they actually encode the user's local wall-clock time as if it were UTC. This means converting them with typical PHP or SQL functions on any non-UTC site will shift every event by the site's UTC offset. Developers exporting EventON data must use gmdate() in PHP or set the SQL session timezone to UTC before querying, to read times correctly. Additionally, repeating events rely on a stored list called repeat_intervals — not just recurrence rule settings — which serves as the authoritative record of all generated occurrences.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in