Revision: 2358
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2358&view=rev
Author: teuf
Date: 2009-05-10 18:32:30 +0000 (Sun, 10 May 2009)
Log Message:
-----------
Fix calculation of local timezone
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_device.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2009-05-10 14:34:17 UTC (rev 2357)
+++ libgpod/trunk/ChangeLog 2009-05-10 18:32:30 UTC (rev 2358)
@@ -1,3 +1,9 @@
+2009-05-10 Christophe Fergeau <[email protected]>
+
+ * src/itdb_device.c: seems the logic in get_local_timezone was
+ inverted, negate the calculated offset before returning it to be
+ consistant with the values we calculate from iPod data
+
2009-05-02 Christophe Fergeau <[email protected]>
* tools/hal-callout.c: mount ipod to collect more ipod
Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c 2009-05-10 14:34:17 UTC (rev 2357)
+++ libgpod/trunk/src/itdb_device.c 2009-05-10 18:32:30 UTC (rev 2358)
@@ -1697,11 +1697,11 @@
seconds_east_utc = tp->tm_gmtoff;
}
# endif /* !HAVE_LOCALTIME_R */
- return seconds_east_utc * -1; /* mimic the old behaviour when global
variable 'timezone' from the 'time.h' header was returned */
+ return seconds_east_utc; /* mimic the old behaviour when global variable
'timezone' from the 'time.h' header was returned */
#elif __CYGWIN__ /* !HAVE_STRUCT_TM_TM_GMTOFF */
- return (gint) _timezone; /* global variable defined by time.h, see man
tzset */
+ return (gint) _timezone * -1; /* global variable defined by time.h, see
man tzset */
#else /* !HAVE_STRUCT_TM_TM_GMTOFF && !__CYGWIN__ */
- return timezone; /* global variable defined by time.h, see man tzset */
+ return timezone * -1; /* global variable defined by time.h, see man tzset
*/
#endif
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2