Revision: 2292
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2292&view=rev
Author:   teuf
Date:     2009-03-26 22:12:36 +0000 (Thu, 26 Mar 2009)

Log Message:
-----------
Use latest findings from Rockbox to set the timezone value

Modified Paths:
--------------
    libgpod/trunk/tools/ipod-scsi.c

Modified: libgpod/trunk/tools/ipod-scsi.c
===================================================================
--- libgpod/trunk/tools/ipod-scsi.c     2009-03-26 22:12:26 UTC (rev 2291)
+++ libgpod/trunk/tools/ipod-scsi.c     2009-03-26 22:12:36 UTC (rev 2292)
@@ -146,7 +146,10 @@
 
     ipod_time.year = GUINT16_TO_BE (1900+tm->tm_year);
     ipod_time.days = GUINT16_TO_BE (tm->tm_yday);
-    ipod_time.timezone = timezone;
+    /* the timezone value is the shift east of UTC in 15 min chunks
+     * so eg. UTC+2 is 2*4 = 8
+     */
+    ipod_time.timezone = tm->tm_gmtoff / 900;
     ipod_time.hour = tm->tm_hour;
     ipod_time.minute = tm->tm_min;
     ipod_time.second = tm->tm_sec;


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

------------------------------------------------------------------------------
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to