aboutsummaryrefslogtreecommitdiff
path: root/osc/packOSC.c
diff options
context:
space:
mode:
Diffstat (limited to 'osc/packOSC.c')
-rwxr-xr-xosc/packOSC.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/osc/packOSC.c b/osc/packOSC.c
index 1a604a4..0849769 100755
--- a/osc/packOSC.c
+++ b/osc/packOSC.c
@@ -1290,9 +1290,7 @@ static OSCTimeTag OSCTT_CurrentTimePlusOffset(uint4 offset)
/* First get the seconds right */
tt.seconds = (unsigned) SECONDS_FROM_1900_to_1970 +
- (unsigned) tv.tv_sec -
- (unsigned) 60 * tz.tz_minuteswest +
- (unsigned) (tz.tz_dsttime ? 3600 : 0)+
+ (unsigned) tv.tv_sec +
(unsigned) offset/onemillion;
/* Now get the fractional part. */
tt.fraction = (unsigned) tv.tv_usec + (unsigned)(offset%onemillion); /* in usec */