Considerit / ConsiderIt

For deliberation and opinion visualization
GNU Affero General Public License v3.0
90 stars 14 forks source link

Date display fix #174

Closed chadbrower0 closed 1 year ago

chadbrower0 commented 1 year ago

Javascript Date-object day-of-month is 1-based, does not need to add 1, per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate

tkriplean commented 1 year ago

Great catch Chad!

I'm going to merge this.

There's one more thing with dates that I think might help:

The client might be in quite a different local time zone than the time zone the server is using for dates. It would be nice to have the server tell the client which time zone the dates are in (via /application), and then have the prettyDate function translate the given date from the server time zone into the local time zone.