diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-08-27 23:17:45 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-08-27 23:17:45 +0000 |
commit | df7344aa9c44e8a2736df02b8569cf32b41cb03a (patch) | |
tree | 0bd8cbd6466ce957d103503a4a28a4efa22697ee /src/utils | |
parent | b2f7e73bc1b7abff4b5aee4f0f569a4a723dc6e9 (diff) | |
download | mv-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.gz mv-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.bz2 mv-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.xz mv-df7344aa9c44e8a2736df02b8569cf32b41cb03a.zip |
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
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"; } |