aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/timezone_conversion
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/timezone_conversion
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/timezone_conversion')
-rw-r--r--library/cpp/timezone_conversion/civil.cpp2
-rw-r--r--library/cpp/timezone_conversion/civil.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/timezone_conversion/civil.cpp b/library/cpp/timezone_conversion/civil.cpp
index 5986318b9a..8b3fea5494 100644
--- a/library/cpp/timezone_conversion/civil.cpp
+++ b/library/cpp/timezone_conversion/civil.cpp
@@ -70,7 +70,7 @@ namespace NDatetime {
return GetFixedTimeZone(offset);
}
TTimeZone result;
- if (!cctz::load_time_zone(static_cast<std::string>(name), &result)) {
+ if (!cctz::load_time_zone(static_cast<std::string>(name), &result)) {
ythrow TInvalidTimezone() << "Failed to load time zone " << name << ", " << result.name();
}
return result;
diff --git a/library/cpp/timezone_conversion/civil.h b/library/cpp/timezone_conversion/civil.h
index 0e95b807ed..4030dd3305 100644
--- a/library/cpp/timezone_conversion/civil.h
+++ b/library/cpp/timezone_conversion/civil.h
@@ -213,7 +213,7 @@ namespace NDatetime {
*/
template <typename TP>
TString Format(TStringBuf fmt, const TP& tp, const TTimeZone& tz) {
- return TString(cctz::format(static_cast<std::string>(fmt), TTimePoint(cctz::convert(tp, tz)), tz));
+ return TString(cctz::format(static_cast<std::string>(fmt), TTimePoint(cctz::convert(tp, tz)), tz));
}
/** Returns the weekday by day.