aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_stats.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-12-04 17:29:46 +0200
committerRiccardo Spagni <ric@spagni.net>2018-12-04 17:29:46 +0200
commitd4a0fb2b895f073c0852bdd42cd05ef4eeb21e3c (patch)
tree71f245b66e10da5d95b48925bdadbcde5d7e3493 /src/blockchain_utilities/blockchain_stats.cpp
parentMerge pull request #4878 (diff)
parentblockchain_stats: don't use gmtime_r on Windows (diff)
downloadmonero-d4a0fb2b895f073c0852bdd42cd05ef4eeb21e3c.tar.xz
Merge pull request #4880
96e6b439 blockchain_stats: don't use gmtime_r on Windows (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities/blockchain_stats.cpp')
-rw-r--r--src/blockchain_utilities/blockchain_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_stats.cpp b/src/blockchain_utilities/blockchain_stats.cpp
index 716b33cae..aae8f333b 100644
--- a/src/blockchain_utilities/blockchain_stats.cpp
+++ b/src/blockchain_utilities/blockchain_stats.cpp
@@ -234,7 +234,7 @@ plot 'stats.csv' index "DATA" using (timecolumn(1,"%Y-%m-%d")):4 with lines, ''
}
time_t tt = blk.timestamp;
char timebuf[64];
- gmtime_r(&tt, &currtm);
+ epee::misc_utils::get_gmt_time(tt, currtm);
if (!prevtm.tm_year)
prevtm = currtm;
// catch change of day