aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/date.cpp
diff options
context:
space:
mode:
authoryu-semichev <yu-semichev@yandex-team.ru>2022-02-10 16:51:59 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:59 +0300
commit00b7a05f09826690aa726bba26c1686aa0c593bb (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/draft/date.cpp
parent94e36d78a926cbf80bd9a2ac1ce171ebfc52bc39 (diff)
downloadydb-00b7a05f09826690aa726bba26c1686aa0c593bb.tar.gz
Restoring authorship annotation for <yu-semichev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/date.cpp')
-rw-r--r--util/draft/date.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/draft/date.cpp b/util/draft/date.cpp
index 95197c4d79..a290c46050 100644
--- a/util/draft/date.cpp
+++ b/util/draft/date.cpp
@@ -72,16 +72,16 @@ TDate::TDate(unsigned year, unsigned month, unsigned monthDay) {
}
}
-time_t TDate::GetStartUTC() const {
- tm dateTm;
- localtime_r(&Timestamp, &dateTm);
- dateTm.tm_isdst = -1;
- dateTm.tm_sec = 0;
- dateTm.tm_min = 0;
- dateTm.tm_hour = 0;
- return TimeGM(&dateTm);
-}
-
+time_t TDate::GetStartUTC() const {
+ tm dateTm;
+ localtime_r(&Timestamp, &dateTm);
+ dateTm.tm_isdst = -1;
+ dateTm.tm_sec = 0;
+ dateTm.tm_min = 0;
+ dateTm.tm_hour = 0;
+ return TimeGM(&dateTm);
+}
+
TString TDate::ToStroka(const char* format) const {
tm dateTm;
localtime_r(&Timestamp, &dateTm);