mrRay / vvopensource

OSC and MIDI frameworks for OS X and iOS, a framework for managing and rendering to GL textures in OS X, and a functional ISF (interactive shader format) implementation for OS X.
230 stars 33 forks source link

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

Open Enigma644 opened 8 years ago

Enigma644 commented 8 years ago

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];

mrRay commented 8 years ago

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