Fix license compliance and fix things up
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64) (push) Successful in 3m57s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7) (push) Successful in 3m56s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 7m23s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Failing after 1m2s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64) (push) Successful in 2m12s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64) (push) Successful in 2m15s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386) (push) Successful in 2m15s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64) (push) Successful in 3m57s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7) (push) Successful in 3m56s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 7m23s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Failing after 1m2s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64) (push) Successful in 2m12s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64) (push) Successful in 2m15s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386) (push) Successful in 2m15s
This commit is contained in:
+6
-8
@@ -27,16 +27,17 @@
|
||||
#include <sstream>
|
||||
using namespace std::chrono;
|
||||
using namespace date;
|
||||
#if defined(__FreeBSD__)
|
||||
extern int tf_timezone;
|
||||
extern bool tf_daylight;
|
||||
#endif
|
||||
namespace Tesses::Framework::Date {
|
||||
int GetTimeZone() {
|
||||
|
||||
#if defined(__SWITCH__) || defined(_WIN32) || defined(GEKKO) || defined(__PS2__)
|
||||
return (int)(-_timezone);
|
||||
#elif defined(__FreeBSD__)
|
||||
struct timeval tv;
|
||||
struct timezone tz;
|
||||
gettimeofday(&tv, &tz);
|
||||
return (tz.tz_minuteswest / 60);
|
||||
return tf_timezone;
|
||||
#else
|
||||
return (int)(-timezone);
|
||||
#endif
|
||||
@@ -45,10 +46,7 @@ bool TimeZoneSupportDST() {
|
||||
#if defined(__SWITCH__) || defined(_WIN32) || defined(GEKKO) || defined(__PS2__)
|
||||
return _daylight == 1;
|
||||
#elif defined(__FreeBSD__)
|
||||
struct timeval tv;
|
||||
struct timezone tz;
|
||||
gettimeofday(&tv, &tz);
|
||||
return tz.tz_dsttime != 0;
|
||||
return tf_daylight;
|
||||
#else
|
||||
return daylight == 1;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user