Skip to content

Node.js based forum software built for the modern web

fix 'invalid date' in post history dropdown, #6362

Julian Lam693c7a3b8574
diff --git a/public/src/client/topic/diffs.js b/public/src/client/topic/diffs.js
index 90892fcfd1..073caa2e3c 100644
--- a/public/src/client/topic/diffs.js
+++ b/public/src/client/topic/diffs.js
@@ -13,6 +13,8 @@ define('forum/topic/diffs', ['benchpress', 'translator'], function (Benchpress,
Benchpress.parse('partials/modals/post_history', {
diffs: timestamps.map(function (timestamp) {
+ timestamp = parseInt(timestamp, 10);
+
return {
timestamp: timestamp,
pretty: new Date(timestamp).toLocaleString(config.userLang.replace('_', '-'), localeStringOpts),