summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index b9e509eead..2b9c8a38dd 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -955,7 +955,7 @@ static std::string morgue_name(time_t when_crawl_got_even)
#else // !SHORT_FILE_NAMES
std::string name = "morgue-" + std::string(you.your_name);
- if (tm *loc = localtime(&when_crawl_got_even))
+ if (tm *loc = TIME_FN(&when_crawl_got_even))
{
char buf[25];
snprintf(buf, sizeof buf, "-%04d%02d%02d-%02d%02d%02d",