sugarchain-project / explorer

Explorer Sugarchain
https://1explorer.sugarchain.org/
BSD 3-Clause "New" or "Revised" License
3 stars 11 forks source link

different timestamp #2

Closed cryptozeny closed 5 years ago

cryptozeny commented 5 years ago

https://github.com/sugarchain-project/explorer/blob/10d15b8d3188806bff67550657d9d9c86fd78e2f/views/includes/address_history.jade#L8

explorer

sugarchain block explorer - google chrome_199

address

sugarchain block explorer - google chrome_200

The two timestamps must be exactly the same. I think there is a problem during conversion of UTC >> KST (GMT + 9).

cryptozeny commented 5 years ago

https://github.com/iquidus/explorer/blob/30f91a05c5cd1b83c721652c1807232ab9727ebc/views/includes/address_history.jade#L8

    - var time = format_unixtime(tx.timestamp)

remove .toTimeString()

it was a bad commit

https://github.com/sugarchain-project/explorer/commit/af9515b18da47f9ee94a99b03dc12e2e0600ce36

cryptozeny commented 5 years ago

https://stackoverflow.com/questions/6525538/convert-utc-date-time-to-local-date-time

cryptozeny commented 5 years ago

fixed

https://github.com/sugarchain-project/explorer/commit/dac065f211bb3ca664e8d686de41483b3a71f36e

cryptozeny commented 5 years ago

sugarchain block explorer - google chrome_205 sugarchain block explorer - google chrome_204 sugarchain block explorer - google chrome_203 sugarchain block explorer - google chrome_202 sugarchain block explorer - google chrome_201

cryptozeny commented 5 years ago

sugarchain block explorer - google chrome_207 sugarchain block explorer - google chrome_206