mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Fix timezone handling for FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -204,7 +204,11 @@ static void | ||||
| packdate (unsigned char *o, time_t w) | ||||
| { | ||||
|   struct tm *t = localtime (&w); | ||||
| #ifdef __FreeBSD__ | ||||
|   int z = - t->tm_gmtoff / 3600 / 15; | ||||
| #else | ||||
|   int z = timezone / 3600 / 15; | ||||
| #endif | ||||
|   *o++ = ((t->tm_year % 10) << 4) + (t->tm_year % 100) / 10; | ||||
|   *o++ = (((t->tm_mon + 1) % 10) << 4) + (t->tm_mon + 1) / 10; | ||||
|   *o++ = ((t->tm_mday % 10) << 4) + t->tm_mday / 10; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user