Annotation of pkgsrc/comms/libopensync/patches/patch-opensync_opensync_time.c, revision 1.1
1.1 ! hans 1: $NetBSD$
! 2:
! 3: --- opensync/opensync_time.c.orig 2007-03-27 13:49:18.000000000 +0200
! 4: +++ opensync/opensync_time.c 2011-11-28 20:41:03.626682362 +0100
! 5: @@ -889,16 +889,13 @@ osync_bool osync_time_isdst(const char *
! 6: osync_trace(TRACE_ENTRY, "%s(%s, %p)", __func__, vtime, tzid);
! 7:
! 8: int year;
! 9: - char *newyear = NULL;
! 10: - time_t newyear_t, timestamp;
! 11: + time_t timestamp;
! 12: struct tm *std_changetime, *dst_changetime;
! 13: time_t dstStamp, stdStamp;
! 14: xmlNode *current = NULL;
! 15:
! 16: sscanf(vtime, "%4d%*2d%*2dT%*2d%*d%*2d%*c", &year);
! 17:
! 18: - newyear = g_strdup_printf("%4d0101T000000", year);
! 19: - newyear_t = osync_time_vtime2unix(newyear, 0);
! 20: timestamp = osync_time_vtime2unix(vtime, 0);
! 21:
! 22: /* Handle XML Timezone field */
CVSweb <webmaster@jp.NetBSD.org>