Handling of UTC time offsets in dc:date

Hello, I use Tropy to tag and organise photos, and I am having trouble making sense of how to work with timezones. I have read this discussion from 2019 and I’m a bit confused. I appreciate that timezones are the bane of developers, so do forgive me.

I am using version 1.17.3 (x64) installed via Flatpak on Linux Mint 22.2

My local timezone is UTC+10, so if I enter 2026-10-14T00:00+00:00 (or 2026-10-14T00:00Z), then it displays as Oct 14, 2026, 10:00 AM. If I change my timezone to UTC+2 and then restart Tropy, it changes to display as Oct 14, 2026, 2:00 AM. I believe this is correct.

However, when it comes to timezones other than UTC, I am either misunderstanding how to read these timestamps, or Tropy is doing something wrong with handling them.

If I am back on my home UTC+10, and I enter 2026-10-14T02:00+02:00, it displays as Oct 14, 2026, 2:00 PM; or if I enter 2026-10-14T10:00+10:00, it displays as Oct 15, 2026, 6:00 AM. I would believe they should both display as Oct 14, 2026, 10am as well, since they are the same time as 2026-10-14T00:00+00:00 (see attached photo).

Another way I have tried to make sense of this is to copy and paste the ISO 8601 timestamps on the Wikipedia page. At time of writing, the three times shown are 2026-10-13T16:18:49-12:00, 2026-10-14T04:18:49+00:00, and 2026-10-14T16:18:49+12:00. My understanding is that these are all the same time, and should all display as Oct 14, 2026, 2:18 PM. However, when copying these times into Tropy, only the +00:00 timestamp displays as Oct 14, 2026, 2:18 PM. 2026-10-13T16:18:49-12:00 displays as Oct 13, 2026, 2:18 PM; and 2026-10-13T16:18:49-12:00 displays as Oct 15, 2026, 2:18 PM.

I feel like Tropy is going the wrong direction with the timezones. The +00:00 timezone displays 10 hours later than the specified time, because I am UTC+10. The +12:00 timezone displays +22 hours than the specified time, but I think it should display -2 hours instead. Similarly, the -12:00 timezone displays -2 hours than the specified time, but I think it should display +22 hours the specified time.

If I flip the +/- signs in the first example, for instance (i.e. -02:00 instead of +02:00), they all appear as Oct 14, 2026, 10:00 AM as I would expect them to.

The description on the Wikipedia page also supports my understanding of Tropy handling this back to front.

A negative UTC offset describes a time zone west of the prime meridian where the civil time is behind UTC. So the zone designation for New York (on standard time) would be β€œβˆ’05:00”, β€œβˆ’0500”, or β€œβˆ’05”. Conversely, a positive UTC offset describes a time zone east of the prime meridian where the civil time is ahead of UTC. So the zone designation for Cairo will be β€œ+02:00”, β€œ+0200”, or β€œ+02”.

Thank you for your time to read this

Hi, thanks for the detailed report β€” you’re right, this is a bug. The date library used by Tropy applied the UTC offset in the wrong direction when parsing timestamps. It will be fixed in the next release. Note that in the next release, timestamps with an explicit offset are displayed in that offset (e.g. β€œOct 14, 2026, 2:00 AM GMT+2”) rather than converted to your local time; timestamps in UTC (Z) are still shown in local time.

1 Like