New issue
 Projects > cocos2d-x > Issues > Bug #4173

gettimeofdayCocos2d is not correct in February and Marth ,2014 ?

Bug #4173 [New]
kenwang 2014-03-03 04:03 . Updated about 11 years ago

here is my code:

    struct cc_timeval now; 
CCTime::gettimeofdayCocos2d(&now, NULL); 
long secTime = now.tv_sec * 1000 + now.tv_usec / 1000;

when I print this secTime variable in console,the secTime value get smaller and smaller....it's not correct...

when i change the system time of device to other months, the secTime value get bigger and bigger.

so please tell me why the time issue.

Thanks in advance!

Atom PDF

Status:New
Start date:2014-03-03
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all, android, ios, win32
Target version:-