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

v1.18.x
Julian Lam 7 years ago
parent 5d2e6f0e8e
commit 693c7a3b85

@ -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),

Loading…
Cancel
Save