Utopian.io is displaying wrong release/payout times (timezone sensitive).

in #utopian-io8 years ago (edited)

Expected behavior

On @utopian-io, when you hover the mouse on top of a post reward value, just like Busy, it will should you a popup with the total value, and on the second line, a message: "Will release in X hours".

This "time-to-payout" must consider UTC in any case. So the payout time will be accurate.

Actual behavior

Instead of considering UTC, the popup shows a browser detected timezone based counter.

Which can be seed here:

nana.png

This result is based on the fact, that I am on the -03:00 timezone.

How to reproduce

Just compare:

https://busy.org/@omeratagun/ancap-turkish-translation-1048-words-or-valid-commit

With:

https://utopian.io/utopian-io/@omeratagun/ancap-turkish-translation-1048-words-or-valid-commit

  • Browser: Chrome
  • Operating system: Linux (Arch)

Recording Of The Bug

Already provided on a previous section.

Guessing.

If I may be allowed, and moment.js is used for that functionally, it's a matter or changing:

moment(post.date) to moment.fromUTC(post.date) (pseudo-code)



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @wehmoen, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Coin Marketplace

STEEM 0.09
TRX 0.32
JST 0.034
BTC 108915.32
ETH 3861.81
USDT 1.00
SBD 0.62