v12
v12 copied to clipboard
Collaborator created at timestamp doesn't render the proper date
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:
- Activate pro with a valid license
- Go to on the collaborators page
- Add a collaborator
- See created at time stamp
Screenshots

Environment (please complete the following information):
- OS: [e.g. iOS, macOS, Windows]
- Browser Chrome
- Botpress Version 12.26.7