1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Import timelib 2022.03

This commit is contained in:
Derick Rethans
2022-11-30 15:58:02 +00:00
parent 83b714d788
commit 41fef8b849
3 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/* Generated by re2c 0.15.3 on Wed Nov 30 15:55:25 2022 */
/* Generated by re2c 0.15.3 on Wed Nov 30 15:57:27 2022 */
#line 1 "ext/date/lib/parse_date.re"
/*
* The MIT License (MIT)

View File

@@ -30,9 +30,9 @@
# include "timelib_config.h"
#endif
#define TIMELIB_VERSION 202202
#define TIMELIB_EXTENDED_VERSION 20220102
#define TIMELIB_ASCII_VERSION "2022.02"
#define TIMELIB_VERSION 202203
#define TIMELIB_EXTENDED_VERSION 20220301
#define TIMELIB_ASCII_VERSION "2022.03"
#include <stdlib.h>
#include <stdbool.h>

View File

@@ -423,6 +423,7 @@ static void do_adjust_timezone(timelib_time *tz, timelib_tzinfo *tzi)
tz->is_localtime = 1;
in_transition = (
actual_transition_time != INT64_MIN &&
((tz->sse - actual_offset) >= (actual_transition_time + (current_offset - actual_offset))) &&
((tz->sse - actual_offset) < actual_transition_time)
);