From df7344aa9c44e8a2736df02b8569cf32b41cb03a Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Tue, 27 Aug 2024 23:17:45 +0000 Subject: Show mail expiry time Server does not communicate sent time.. or it did, until 2017 ?? See src/map/clif.c #if PACKETVER >= 20170419 The RODEX_EXPIRY constant seems not to be communicated either, preventing us from deducing send time from expiry time. **** mana/plus!90 --- src/utils/stringutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils/stringutils.cpp') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 8daaf3be2..cd2a87ab2 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -947,7 +947,8 @@ std::string timeToStr(const uint32_t time) char buf[101]; const time_t tempTime = time; tm *const timeInfo = localtime(&tempTime); - if (strftime(&buf[0], 100, "%Y-%m-%d_%H-%M-%S", timeInfo) != 0U) + // %c is locale-defined format + if (strftime(&buf[0], 100, "%c", timeInfo) != 0U) return std::string(buf); return "unknown"; } -- cgit v1.2.3-70-g09d2