aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorfloatdrop <floatdrop@yandex-team.ru>2022-02-10 16:47:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:15 +0300
commite63b84f1d39557d9e46ac380b1f388271894293c (patch)
tree338cdaff3fb027e030b847db66df06019a0e3149 /library/cpp
parentf60febb7ea449535e7b073c386c7ff0539637fc0 (diff)
downloadydb-e63b84f1d39557d9e46ac380b1f388271894293c.tar.gz
Restoring authorship annotation for <floatdrop@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/timezone_conversion/civil.cpp8
-rw-r--r--library/cpp/timezone_conversion/civil.h14
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/timezone_conversion/civil.cpp b/library/cpp/timezone_conversion/civil.cpp
index 5986318b9a..eb62e405f8 100644
--- a/library/cpp/timezone_conversion/civil.cpp
+++ b/library/cpp/timezone_conversion/civil.cpp
@@ -76,10 +76,10 @@ namespace NDatetime {
return result;
}
- TTimeZone GetFixedTimeZone(const long offset) {
- return cctz::fixed_time_zone(std::chrono::seconds(offset));
- }
-
+ TTimeZone GetFixedTimeZone(const long offset) {
+ return cctz::fixed_time_zone(std::chrono::seconds(offset));
+ }
+
TCivilSecond Convert(const TInstant& absTime, const TTimeZone& tz) {
return cctz::convert(TSystemClock::from_time_t(absTime.TimeT()), tz);
}
diff --git a/library/cpp/timezone_conversion/civil.h b/library/cpp/timezone_conversion/civil.h
index 0e95b807ed..9e809ad6a3 100644
--- a/library/cpp/timezone_conversion/civil.h
+++ b/library/cpp/timezone_conversion/civil.h
@@ -100,13 +100,13 @@ namespace NDatetime {
*/
TTimeZone GetTimeZone(TStringBuf name);
- /**
- * Returns a time zone that is a fixed offset (seconds east) from UTC.
- * Note: If the absolute value of the offset is greater than 24 hours
- * you'll get UTC (i.e., zero offset) instead.
- */
- TTimeZone GetFixedTimeZone(const long offset);
-
+ /**
+ * Returns a time zone that is a fixed offset (seconds east) from UTC.
+ * Note: If the absolute value of the offset is greater than 24 hours
+ * you'll get UTC (i.e., zero offset) instead.
+ */
+ TTimeZone GetFixedTimeZone(const long offset);
+
/** Convert civil time from one timezone to another
* @param[in] src is source time with 'from' timezone
* @param[in] from is a initial timezone