vvopensource icon indicating copy to clipboard operation
vvopensource copied to clipboard

OSCBundle:TimeTag should be seconds since midnight Jan 1, 1900

Open Enigma644 opened this issue 9 years ago • 1 comments

As per http://opensoundcontrol.org/node/3/#timetags the TimeTag should be seconds since midnight on January 1, 1900, but OSCBundle is incorrectly sending seconds since Jan 1, 2001.

Quick fix: NSDate* timestamp = [NSDate date]; NSDate *timeStampAdjusted = [timestamp dateByAddingTimeInterval:3187296000];//Add seconds between 1900 and 2001 [bundle setTimeTag:timeStampAdjusted];

Enigma644 avatar Jan 23 '16 19:01 Enigma644

howdy-

sorry for the delay, i didn't notice the email notification for your issue.

"but OSCBundle is incorrectly sending seconds since Jan 1, 2001."

you are, of course, absolutely correct- thanks very much for letting me know about this!

cheers : : ray

mrRay avatar Feb 22 '16 20:02 mrRay