aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/timezone_conversion/convert.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/timezone_conversion/convert.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/timezone_conversion/convert.cpp')
-rw-r--r--library/cpp/timezone_conversion/convert.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/timezone_conversion/convert.cpp b/library/cpp/timezone_conversion/convert.cpp
index 490bb4e270..e3b789a3dd 100644
--- a/library/cpp/timezone_conversion/convert.cpp
+++ b/library/cpp/timezone_conversion/convert.cpp
@@ -26,27 +26,27 @@ namespace NDatetime {
tm.IsLeap = LeapYearAD(cs.year());
switch (cctz::get_weekday(cd)) {
- case cctz::weekday::monday:
- tm.WDay = 1;
- break;
- case cctz::weekday::tuesday:
- tm.WDay = 2;
- break;
- case cctz::weekday::wednesday:
- tm.WDay = 3;
- break;
- case cctz::weekday::thursday:
- tm.WDay = 4;
- break;
- case cctz::weekday::friday:
- tm.WDay = 5;
- break;
- case cctz::weekday::saturday:
- tm.WDay = 6;
- break;
- case cctz::weekday::sunday:
- tm.WDay = 0;
- break;
+ case cctz::weekday::monday:
+ tm.WDay = 1;
+ break;
+ case cctz::weekday::tuesday:
+ tm.WDay = 2;
+ break;
+ case cctz::weekday::wednesday:
+ tm.WDay = 3;
+ break;
+ case cctz::weekday::thursday:
+ tm.WDay = 4;
+ break;
+ case cctz::weekday::friday:
+ tm.WDay = 5;
+ break;
+ case cctz::weekday::saturday:
+ tm.WDay = 6;
+ break;
+ case cctz::weekday::sunday:
+ tm.WDay = 0;
+ break;
}
return tm;
@@ -87,7 +87,7 @@ namespace NDatetime {
civilTime.MDay,
civilTime.Hour,
civilTime.Min,
- civilTime.Sec);
+ civilTime.Sec);
return TInstant::Seconds(TSystemClock::to_time_t(tz.lookup(cs).pre));
}
}