diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 00:25:02 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-23 00:25:02 +0800 |
commit | 4a0c8d72b05152ee2fd71245873d5a70f7281058 (patch) | |
tree | 2c28ad8214aaaa10913a621509d0ae4020ee4d3d /packages/order-watcher/src/utils/utils.ts | |
parent | d460c0e8b9c6f4081803fff4e2d2347be8cd5ce3 (diff) | |
parent | ab9cfd293b3ccc2aacb4238aebe2b033e55b7935 (diff) | |
download | dexon-0x-contracts-4a0c8d72b05152ee2fd71245873d5a70f7281058.tar.gz dexon-0x-contracts-4a0c8d72b05152ee2fd71245873d5a70f7281058.tar.zst dexon-0x-contracts-4a0c8d72b05152ee2fd71245873d5a70f7281058.zip |
merge development
Diffstat (limited to 'packages/order-watcher/src/utils/utils.ts')
-rw-r--r-- | packages/order-watcher/src/utils/utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/order-watcher/src/utils/utils.ts b/packages/order-watcher/src/utils/utils.ts index af1125632..d34f6b99f 100644 --- a/packages/order-watcher/src/utils/utils.ts +++ b/packages/order-watcher/src/utils/utils.ts @@ -5,7 +5,8 @@ export const utils = { return new Error(`Unexpected switch value: ${value} encountered for ${name}`); }, getCurrentUnixTimestampSec(): BigNumber { - return new BigNumber(Date.now() / 1000).round(); + const milisecondsInASecond = 1000; + return new BigNumber(Date.now() / milisecondsInASecond).round(); }, getCurrentUnixTimestampMs(): BigNumber { return new BigNumber(Date.now()); |