Bug 62723

Summary: Fetching events by date does not respect local timezone
Product: Telepathy Reporter: Dan Vrátil <dvratil>
Component: loggerAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: rishi.is
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.