Skip to content

Dates and times are messed up when the day is same number as current day, no matter what year or month it was #11663

@Julianoe

Description

@Julianoe

Description:

In the "directory" page the dates for last message posted and creating date are wrong. Same thing goes for users creation dates !

Examples : what i have

  • arts channel creation date : 31 may 2017
  • arts channel last message : 2 june 2018, 13:29
  • webdesign channel creation date : 2 june 2017
  • webdeisgn channel last message : 3 june 2018, 13:53

Examples : what is displayed

Consider this is take the 3 of august 2018 at 1:54 (am)

capture d ecran de 2018-08-03 01-49-18

  • arts channel creation date : 31 may 2017
  • arts channel last message : "yesterday"
  • webdesign channel creation date : "yesterday"
  • webdeisgn channel last message : 13:53

what would be excpected i guess :

  • arts channel creation date : 31 may 2017
  • arts channel last message : 2 june 2018
  • webdesign channel creation date : 2 june 2017
  • webdeisgn channel last message : 3 june 2018

Obviously there is something wrong in the code that takes the number of the day but does takes in account the month or year

Server Setup Information:

  • Version of Rocket.Chat Server: 0.68.3
  • Operating System: linux ubuntu 16.04
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: disabled (?)
  • NodeJS Version: v8.11.3
  • MongoDB Version: 130 (?)

Additional context

(damn those US/UK date and time formats)

Metadata

Metadata

Assignees

Labels

area: uiTouches the code on client side

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions