]> git.0d.be Git - empathy.git/commit
Use g_date_time_new_from_unix_local() to read timestamps from logger
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 31 Aug 2011 03:13:16 +0000 (13:13 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 31 Aug 2011 03:13:16 +0000 (13:13 +1000)
commite46108042c88db357d67d82184738f72ad76f4be
tree5aad0efd0f58aa6c547a786ed498262a91d5c4d6
parente4041ce8c3d86e99d747c53012349baa83116d45
Use g_date_time_new_from_unix_local() to read timestamps from logger

g_date_time_new_from_unix_local() reads a Unix timestamp (which is defined
to be in UTC) and sets the timezone for the GDateTime to be the local timezone.
Thus when we format it, we get times in local time.

g_date_time_new_from_unix_utc() is not correct, because it sets the timezone
to UTC.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656189
libempathy-gtk/empathy-log-window.c