aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/date.cpp
diff options
context:
space:
mode:
authorgimych <gimych@yandex-team.ru>2022-02-10 16:51:59 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:59 +0300
commit9d2d0f8e0177a060b2a2142528c3eb94769c4893 (patch)
tree8b2e8f00f6de8a4838c1845590a6e5b98e97185a /util/draft/date.cpp
parent3e2979c38913ade16bf33ea8a905eabdaececbe0 (diff)
downloadydb-9d2d0f8e0177a060b2a2142528c3eb94769c4893.tar.gz
Restoring authorship annotation for <gimych@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/draft/date.cpp')
-rw-r--r--util/draft/date.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/draft/date.cpp b/util/draft/date.cpp
index a290c46050..b6242ab2fb 100644
--- a/util/draft/date.cpp
+++ b/util/draft/date.cpp
@@ -8,9 +8,9 @@ time_t GetDateStart(time_t ts) {
tm dateTm;
memset(&dateTm, 0, sizeof(tm));
localtime_r(&ts, &dateTm);
-
+
dateTm.tm_isdst = -1;
-
+
dateTm.tm_sec = 0;
dateTm.tm_min = 0;
dateTm.tm_hour = 0;
@@ -23,7 +23,7 @@ static time_t ParseDate(const char* date, const char* format) {
if (!strptime(date, format, &dateTm)) {
ythrow yexception() << "Invalid date string and format: " << date << ", " << format;
}
- return mktime(&dateTm);
+ return mktime(&dateTm);
}
static time_t ParseDate(const char* dateStr) {
@@ -49,8 +49,8 @@ TDate::TDate(const TString& yyyymmdd)
{
}
-TDate::TDate(time_t ts)
- : Timestamp(GetDateStart(ts))
+TDate::TDate(time_t ts)
+ : Timestamp(GetDateStart(ts))
{
}