aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/base.cpp
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:13 +0300
commit438546c8737d5c1fdeb31157dcf999717d930eec (patch)
treed29d229abd2f9f889b9b7eb148d635059dc26acf /util/datetime/base.cpp
parent96647fad5355ff5ef45a00a6d85c097028584ab0 (diff)
downloadydb-438546c8737d5c1fdeb31157dcf999717d930eec.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/base.cpp')
-rw-r--r--util/datetime/base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/datetime/base.cpp b/util/datetime/base.cpp
index 38ecc3ab96..8238cc66a2 100644
--- a/util/datetime/base.cpp
+++ b/util/datetime/base.cpp
@@ -287,9 +287,9 @@ TString DateToString(time_t when, long* sec) {
TString YearToString(const struct tm& theTm) {
Y_ENSURE(0 <= theTm.tm_year + 1900 && theTm.tm_year + 1900 <= 9999, "invalid year " + ToString(theTm.tm_year + 1900) + ", year should be in range [0, 9999]");
- char buf[16];
- sprintf(buf, "%04d", theTm.tm_year + 1900);
- return buf;
+ char buf[16];
+ sprintf(buf, "%04d", theTm.tm_year + 1900);
+ return buf;
}
TString YearToString(time_t when) {