Wrong time displayed

Not sure if this is a bug. I noticed that when typing in the date and time, it requires 2 digits for the month and hour. Using a single digit, the wrong time is displayed.

Type in the following date and time

![2020-03-13 08:00] -> display correct date/time
![2020-03-13 8:00] -> display wrong date/time
![2020-3-13 8:00] -> display correct date/time

Environment

Which operating system are you using? Windows 10
Which browser are you using? chrome


Additional comments

Hmm I’ve noticed that too, but I’m guessing it’s due to how the date library interprets standard format dates. Normally this isn’t an issue since most people input dates using the date-picker which should be generating the correct date/time format.

We’re using moment.js to parse dates, and the docs is at https://momentjs.com/docs/#/parsing/string/

Reading from the docs, the library tries to recognize standard ISO dates (08:00), so I believe 8:00 would trigger a fallback mechanism and then it’s up to the browser to interpret the date you wrote.

Like Shida said, we encourage you to use the date picker and if not, please at least conform to our standard format. Otherwise search won’t work, Google Calendar sync won’t work, and if you collaborate, others won’t see the date displayed properly either.

Thanks for the response.

1 Like