Bug 62723 - Fetching events by date does not respect local timezone
Summary: Fetching events by date does not respect local timezone
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 12:56 UTC by Dan Vrátil
Modified: 2019-12-03 19:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dan Vrátil 2013-03-25 12:56:33 UTC
Retrieving messages for a specific date returns messages according to UTC timezone, not user's locale timezone.

This means that when I'm in UTC+1 timezone and I receive a message on 2013-03-25 00:01:00+01:00 ( = 2013-03-24 23:01:00+00:00 ), the message will not be listed when querying for messages from 2013-03-25. This also means that when querying for 2013-03-24, I'll incorrectly receive messages retrieved between 2013-03-25 00:00:00+01:00 and 2013-03-25 00:59:59+01:00.

To display messages to users correctly according to their timezone, one have query all messages from requested day and the day before (or the day after, depending on whether it's UTC+x or UTC-x timezone), convert all message timestamps and discard messages that don't fit into the requested time frame. 

This is quite complicated and I think such behaviour is a bug.
Comment 1 GitLab Migration User 2019-12-03 19:32:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-logger/issues/34.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.