[gnome-contacts] Convert birthdays to local time



commit 0019ded857c44ad91f3536a5d3e45c8bdf64884e
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Sep 22 08:19:24 2011 +0200

    Convert birthdays to local time
    
    Folks store dates as UTC, but birthdays are typically in "local" time,
    which the eds backend converted to UTC. We need to convert back to
    avoid sometimes showing the date offset.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659642

 src/contacts-contact-pane.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index e14a834..13efbad 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1450,7 +1450,7 @@ public class Contacts.ContactPane : Grid {
     DateTime? bday = contact.individual.birthday;
     if (bday != null) {
       fields_layout.add_label (_("Birthday"));
-      fields_layout.add_detail (bday.format ("%x"));
+      fields_layout.add_detail (bday.to_local ().format ("%x"));
     }
 
     var roles_details = contact.individual.roles;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]