From b78cbbcaa25d03d07b77a010a26568182682c6f1 Mon Sep 17 00:00:00 2001
From: NateScarlet <NateScarlet@Gmail.com>
Date: Wed, 20 Mar 2019 09:27:49 +0800
Subject: [PATCH] Show locale string on timestamp (#6324)

Resolve #6004
---
 public/js/index.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/public/js/index.js b/public/js/index.js
index a34904abba..77b2f23370 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1892,6 +1892,10 @@ $(document).ready(function () {
 
     // Show exact time
     $('.time-since').each(function () {
+        var time = new Date($(this).attr('title'))
+        if (!isNaN(time)){
+            $(this).attr('title', time.toLocaleString())
+        }
         $(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');
     });