Revision: 2368
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2368&view=rev
Author:   teuf
Date:     2009-06-05 20:42:44 +0000 (Fri, 05 Jun 2009)

Log Message:
-----------
Look up timezone name from city ID

Modified Paths:
--------------
    libgpod/trunk/src/itdb_tzinfo.c

Modified: libgpod/trunk/src/itdb_tzinfo.c
===================================================================
--- libgpod/trunk/src/itdb_tzinfo.c     2009-06-05 20:42:28 UTC (rev 2367)
+++ libgpod/trunk/src/itdb_tzinfo.c     2009-06-05 20:42:44 UTC (rev 2368)
@@ -166,6 +166,17 @@
 static gboolean raw_timezone_to_utc_shift_6g (gint16 raw_timezone,
                                               gint *utc_shift)
 {
+    const ItdbTimezone *it;
+
+    for (it = timezones; it->city_name != NULL; it++) {
+       if (it->city_index == raw_timezone) {
+           break;
+       }
+    }
+    if (it->city_name == NULL) {
+       return FALSE;
+    }
+    g_print ("timezone: %s\n", it->tz_name);
     *utc_shift = 0;
     return TRUE;
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to