[QGIS-Developer] QGIS, DateTime and TimeZones

C Hamilton adenaculture at gmail.com
Tue Sep 8 08:00:46 PDT 2020


Richard,

I would second the desire to make QGIS more timezone aware. QDateTime
supports time zones so QGIS does support it, but not much effort has gone
into really supporting it. I currently have a task to do a QGIS date/time
conversion tool with algorithms to convert between different time formats
including EPOCH time. This was something that I was planning on starting
soon. Like you said though time zones are going to be a real pain
especially if you want to take a coordinate and convert it to a time zone.
There are some python libraries I have been investigating to help with the
task.

Calvin

On Tue, Sep 8, 2020 at 9:40 AM Richard Duivenvoorde <rdmailings at duif.net>
wrote:

> Hi Devs,
>
> I was hitting some timezone issues when I received some csv data in which
> there are timestamps like:
> "2020-07-25 20:21:38 UTC"
> Apparently if you read this into QGIS, the UTC IS interpreted, and you get
> a DateTime in your data which is (in my case) -2 hours(CET) off (well in
> some parts of QGIS)
>
> This plays havoc if you for example are going to use this data in the
> timecontroller or expressions, see
> https://github.com/qgis/QGIS/issues/38647
>
> So I think that now the TimeController is part of QGIS, and people will
> start to play with Time-based data more and more (from TimeZone aware
> datasets like csv and postgres) we will run into issues like above.
>
> Is there something we can do to make QGIS timezone aware?
> OR should we stay far away from it (timezones are hell)...
> OR should we wait with it after QGIS 4
>
> Regards,
>
> Richard Duivenvoorde
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200908/8c90384f/attachment-0001.html>


More information about the QGIS-Developer mailing list