diff options
author | Eugene Lamskoy | 2021-12-16 18:16:03 +0200 |
---|---|---|
committer | Eugene Lamskoy | 2021-12-16 18:16:03 +0200 |
commit | 1c636aec0734d5e349a1a78dede03b1897bd85e5 (patch) | |
tree | 9ccd99c9b91a35afb81c2de9fd8b711beca0dc50 /timezonedb-guess.patch | |
parent | 82e9513a3e5770bc8ceef73f91c6d57148e75949 (diff) | |
download | aur-1c636aec0734d5e349a1a78dede03b1897bd85e5.tar.gz |
Revert "Upgraded pkgbuild"
This reverts commit 82e9513a3e5770bc8ceef73f91c6d57148e75949.
Diffstat (limited to 'timezonedb-guess.patch')
-rw-r--r-- | timezonedb-guess.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/timezonedb-guess.patch b/timezonedb-guess.patch deleted file mode 100644 index 10c057e40799..000000000000 --- a/timezonedb-guess.patch +++ /dev/null @@ -1,27 +0,0 @@ -index cf4a11b..f2ea919 100644 ---- a/ext/date/php_date.c -+++ b/ext/date/php_date.c -@@ -545,6 +545,23 @@ static char* guess_timezone(const timelib_tzdb *tzdb) - DATEG(timezone_valid) = 1; - return DATEG(default_timezone); - } -+ /* Try to guess timezone from system information */ -+ { -+ struct tm *ta, tmbuf; -+ time_t the_time; -+ char *tzid = NULL; -+ -+ the_time = time(NULL); -+ ta = php_localtime_r(&the_time, &tmbuf); -+ if (ta) { -+ tzid = timelib_timezone_id_from_abbr(ta->tm_zone, ta->tm_gmtoff, ta->tm_isdst); -+ } -+ if (! tzid) { -+ tzid = "UTC"; -+ } -+ -+ return tzid; -+ } - /* Fallback to UTC */ - return "UTC"; - } |