v12 icon indicating copy to clipboard operation
v12 copied to clipboard

Collaborator created at timestamp doesn't render the proper date

Open EFF opened this issue 4 years ago • 0 comments

Describe the bug After creating a collaborator, the Created timestamp in the ui is off. Impossible to have created a collaborator "In 5 Hours". I'm located in Eastern time zone which is exactly GMT - 5.

For some reason this line doesn't take time zone into account

Additional context:

  • Inspecting the database, my created_at prop is "created_at":"2021-12-01T20:21:38.158Z"
  • Straight up using moment in my node console renders properly moment("2021-12-01T20:21:38.158Z").fromNow() ==> '23 minutes ago'
  • In the ui it renders "in 5 hours"

Needs to be checked :

  • any date parsing when loading the user attributes ?
  • is there any buggy behaviour for last login as well ?

To Reproduce Steps to reproduce the behavior:

  1. Activate pro with a valid license
  2. Go to on the collaborators page
  3. Add a collaborator
  4. See created at time stamp

Screenshots Screen Shot 2021-12-01 at 3 26 57 PM

Environment (please complete the following information):

  • OS: [e.g. iOS, macOS, Windows]
  • Browser Chrome
  • Botpress Version 12.26.7

EFF avatar Dec 01 '21 20:12 EFF