GNOME Bugzilla – Bug 619012
Empathy's log viewer shows wrong date for some messages
Last modified: 2010-09-21 08:02:00 UTC
It seems like the logfile is saved in UTC-time, while the logviewer adjusts the time to the local timezone. However, the date in the "Previous Conversations" dialogue is not adjusted when in another timezone, i.e. UTC+0100. Steps to reproduce: 1) Create a log file with the name "20100517.log" and the following content: <?xml version='1.0' encoding='utf-8'?> <?xml-stylesheet type="text/xsl" href="empathy-log.xsl"?> <log> <message time='20100517T23:45:00' cm_id='0' id='mail@example.com' name='EmpTest' token='' isuser='true' type='normal'>This is just for testing!</message> </log> 2) Find the message in the "Previous Conversations" dialogue and notice the date, both in the list of search results and the date picker. Expected result: The date should be 18.05.2010 when in UTC+0100. Actual result: The date shows 17.05.2010, although this is wrong.
Created attachment 170692 [details] [review] proposed fix The proposed fix implements the following approach: 1. Request messages for additional date (+/- 1 day depending on time zone) if time zone offset is not zero. 2. Pass to the UI only messages from the selected local date (remove extra messages).
Review of attachment 170692 [details] [review]: Thanks for your patch but that's the wrong approach. This should be fixed in telepathy-logger directly.
I forwarded this bug to telepathy-logger: https://bugs.freedesktop.org/show_bug.cgi?id=30298