Skip to content

Date conversion bug in Journal app #185

@b1conrad

Description

@b1conrad

There is a function convertDate that is defined in two different places here. Two problems with this code:

  1. If the time change required (for time zone of owner) changes the date, this code doesn't compute the correct date.
  2. When this is fixed, it will have to be done in both places (so maybe there should only be one place?)

Another possibility would be to use code that already exists, rather than rolling our own (and risking this kind of problem), for example, either moment or strftime ought to provide what we need.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions