OSDN Git Service

update the time formate to local time format.
authorZhiting Lin <zlin035@uottawa.ca>
Fri, 15 Feb 2019 07:55:18 +0000 (15:55 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Fri, 15 Feb 2019 07:55:18 +0000 (15:55 +0800)
src/components/layout/account/index.jsx

index 590530c..7734d6f 100644 (file)
@@ -57,7 +57,7 @@ class Account extends Component {
           list.push( <tr key={'record'+i}>
             <th scope="row">{i}</th>
             <td>{re.amount}</td>
-            <td>{new Date(re.create_at * 1000).toUTCString()}</td>
+            <td>{new Date(re.create_at * 1000).toLocaleString()}</td>
           </tr>)
         }
       )