|
|
|
@ -466,6 +466,8 @@ bool pOnvif::create( void ) { |
|
|
|
try { |
|
|
|
struct tm * tTS; |
|
|
|
tTS = core_GetSystemDateAndTime(); |
|
|
|
//This is UTS DTS
|
|
|
|
|
|
|
|
if( tTS != NULL ){ |
|
|
|
#ifdef DEBUG
|
|
|
|
char tB[128]; |
|
|
|
@ -478,10 +480,10 @@ bool pOnvif::create( void ) { |
|
|
|
tTS->tm_year -= 1900; |
|
|
|
tTS->tm_mon -= 1; |
|
|
|
|
|
|
|
time_t tTimeStamp = mktime( tTS ); |
|
|
|
time_t tTimeStamp = timegm( tTS );//mktime( tTS );
|
|
|
|
|
|
|
|
m_nDeltaTime = time(NULL) - tTimeStamp; |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
#ifdef DEBUG
|
|
|
|
sprintf( tB,"TS:[%d] D:[%d]", tTimeStamp, m_nDeltaTime ); |
|
|
|
LOG(tB); |
|
|
|
#endif
|
|
|
|
|