Lunie: Use 24 hr format for displaying time

Created on 7 Dec 2018  路  9Comments  路  Source: luniehq/lunie

Description:

Based on feedback from @cwgoes

ux-improvement

Most helpful comment

All 9 comments

what is the thinking here @cwgoes @zramsay? something beyond preference?

I think 24-hour time is unambiguous and ought to be the preferred world format - it's definitely popular among our initial likely userbase.

However, as my preference may not be universally shared - it doesn't necessarily need to be the default - a configuration option would be nice.

a configuration option would be nice

makes sense to me. maybe we can take this config from the browser.

Agree let's pick the system/browser preferences then eventually we can override them with some config

I would like to include in this also some fixes on time:

  • sometimes we use Date instead of moment
  • transaction.time seems not to be there for cosmos-sdk/Send transactions

transaction.time seems not to be there for cosmos-sdk/Send transactions

transactions get enriched with time in Voyager (transaction module > enrichTransactions). transactions don't hold time. only block header information hold time.
This could/should move into stargate at some point.

Exactly,

  • the type does not match, we are storing an ISO string, but the usages of them seems to like Number
  • it seems to be null for some kind of transactions at least (just checked from develop)

totally agree on adding this before it hit the client

in the meanwhile the cause of the missed enrichment was just another Type mismatch :)

heightsSet: {28, 25, "2", "5", "8"}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

okwme picture okwme  路  3Comments

NodeGuy picture NodeGuy  路  4Comments

faboweb picture faboweb  路  3Comments

faboweb picture faboweb  路  3Comments

fedekunze picture fedekunze  路  3Comments