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

in #utopian-io7 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!