Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Enigma644 opened this issue Jan 23, 2016 · 1 comment
Open

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

Enigma644 opened this issue Jan 23, 2016 · 1 comment

Comments

@Enigma644
Copy link

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
Copy link
Owner

mrRay commented Feb 22, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants