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

Log Message:
-----------
Set DST flag on the iPod

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:15 UTC (rev 2290)
+++ libgpod/trunk/tools/ipod-scsi.c     2009-03-26 22:12:26 UTC (rev 2291)
@@ -136,7 +136,8 @@
        guchar hour;
        guchar minute;
        guchar second;
-       guchar padding[4];
+       guchar dst;
+       guchar padding[3];
     } __attribute__((__packed__));
     struct iPodTime ipod_time;
     struct tm *tm;
@@ -148,7 +149,12 @@
     ipod_time.timezone = timezone;
     ipod_time.hour = tm->tm_hour;
     ipod_time.minute = tm->tm_min;
-    ipod_time.second = tm->tm_sec,
+    ipod_time.second = tm->tm_sec;
+    if (tm->tm_isdst) {
+       ipod_time.dst = 1;
+    } else {
+       ipod_time.dst = 0;
+    }
     memset (ipod_time.padding, 0, sizeof (ipod_time.padding));
 
     do_sg_write_buffer (device, &ipod_time, sizeof (ipod_time));


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