aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime
diff options
context:
space:
mode:
authorkerzum <kerzum@yandex-team.ru>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:33 +0300
commit9a7232babfd763ccfe827bc70e82e0f50cfd8276 (patch)
treea39808b7482c4711a80f799a7281adb36d76a13a /util/datetime
parent0e68ae909d3b76a5a001a07880eb0010dec6b2ea (diff)
downloadydb-9a7232babfd763ccfe827bc70e82e0f50cfd8276.tar.gz
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r--util/datetime/parser.rl62
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datetime/parser.rl6 b/util/datetime/parser.rl6
index 931f09eae1..879550727a 100644
--- a/util/datetime/parser.rl6
+++ b/util/datetime/parser.rl6
@@ -209,7 +209,7 @@ secondFrac = digit {1,6} >clear_int $update_int @{
secondFracTail = (digit*);
zoneZ = [Zz] @set_zone_utc;
-zoneOffset = space? . ('+' | '-') >{ Sign = fc == '+' ? 1 : -1; } . int2 @{ DateTimeFields.ZoneOffsetMinutes = Sign * (i32)TDuration::Hours(I).Minutes(); } . (':')? . (int2 @{ DateTimeFields.ZoneOffsetMinutes += I * Sign; })?;
+zoneOffset = space? . ('+' | '-') >{ Sign = fc == '+' ? 1 : -1; } . int2 @{ DateTimeFields.ZoneOffsetMinutes = Sign * (i32)TDuration::Hours(I).Minutes(); } . (':')? . (int2 @{ DateTimeFields.ZoneOffsetMinutes += I * Sign; })?;
zone = zoneZ | zoneOffset;
iso8601date = (year . '-' . month . '-' . day) | (year . month . day);