Skip to content

Commit 76d6558

Browse files
committed
fix formatting
1 parent 07b5424 commit 76d6558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime-light/stdlib/time/time-functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ inline int64_t f$mktime(Optional<int64_t> hour = {}, Optional<int64_t> minute =
8888
inline string f$gmdate(const string& format, Optional<int64_t> timestamp = {}) noexcept {
8989
namespace chrono = std::chrono;
9090
const time_t now{timestamp.has_value() ? timestamp.val() : duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count()};
91-
struct tm tm{};
91+
struct tm tm {};
9292
gmtime_r(std::addressof(now), std::addressof(tm));
9393
return kphp::time::impl::date(format, tm, now, false);
9494
}
9595

9696
inline string f$date(const string& format, Optional<int64_t> timestamp = {}) noexcept {
9797
namespace chrono = std::chrono;
9898
const time_t now{timestamp.has_value() ? timestamp.val() : duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count()};
99-
struct tm tm{};
99+
struct tm tm {};
100100
if (auto* res{k2::localtime_r(std::addressof(now), std::addressof(tm))}; res != std::addressof(tm)) [[unlikely]] {
101101
kphp::log::warning("can't get local time");
102102
return {};

0 commit comments

Comments
 (0)