Add date time based object based on timezone to GitLab Flavored Markdown
Problem to solve
As a distributed team, we usually set dates in issues, comments, merge requests, ... and they usually have the timezone. If you're close to the timezone, you might not need to check and make the conversion, otherwise, it's a bit painful to check it every time.
At the moment we have added the timezone to the user profile, not enabled yet though.
It would be great if we could, based on the user timezone, translate automatically dates and times to the user timezone using GFM.
Intended users
Every user that uses date times.
Further details
It can help with timezones and distributed teams.
Proposal
I made a quick MVC about how it could work:
In the MVC I used regular strings inside code blocks. If the string can be converted to a date/time object we continue the transformation otherwise we leave the existing code. We did a similar approach when we implemented colors in GFM but I understand this translation can generate wrong results some times.
Perhaps we can use a different syntax or even a custom method like datetime("...")
.