In objective c:
NSDate *past = [NSDate date];
NSTimeInterval oldTime = [past timeIntervalSince1970];
NSString *timestamp = [[NSString alloc] initWithFormat:@"%0.0f", oldTime];
in Javascript:
new Date().getTime();
The problem is that in objective c the timestamp consists of 10 numbers, however in javascript it has 13 numbers. When I compare the difference of both is within 15 minutes I get always false.
Any ideas how to get a 13 digit timestamp in objective c?