diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-23 07:16:56 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-23 07:16:56 +0800 |
commit | 18496ad8595acd9fa8ec333fcd73de1ddfb8d62a (patch) | |
tree | 09fcad93bac8a1d6afecaecfa1bcd45598a01ccd /ui/app/util.js | |
parent | 9dce1b6fd5cdf8e5e14240bbcf1088f23e92c285 (diff) | |
download | tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar.gz tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar.bz2 tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar.lz tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar.xz tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.tar.zst tangerine-wallet-browser-18496ad8595acd9fa8ec333fcd73de1ddfb8d62a.zip |
Render TxListItem component from real data: address, identicon, status, ETH value
Diffstat (limited to 'ui/app/util.js')
-rw-r--r-- | ui/app/util.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js index ac3f42c6b..4dd0e30f3 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -1,4 +1,10 @@ const ethUtil = require('ethereumjs-util') +const vreme = new (require('vreme'))() + +// formatData :: ( date: <Unix Timestamp> ) -> String +function formatDate (date) { + return vreme.format(new Date(date), 'March 16 2014 14:30') +} var valueTable = { wei: '1000000000000000000', @@ -36,6 +42,7 @@ module.exports = { valueTable: valueTable, bnTable: bnTable, isHex: isHex, + formatDate, } function valuesFor (obj) { |