Closed dmalan closed 2 years ago
Ah this one!
Perhaps just using these defaults, no need for customization, using https://moment.github.io/luxon/?
https://github.com/cs50/jekyll-theme-cs50/blob/develop/lib/jekyll-theme-cs50/constants.rb#L13-L20
Current implementation is in https://github.com/cs50/jekyll-theme-cs50/blob/develop/assets/jekyll-theme-cs50.js#L170-L267, though parsing of the YYYY-MM-DD HH:MM datetimes is currently done in Ruby, but https://moment.github.io/luxon/#/parsing?id=fromformat should do the trick in JS?
It occurs to me that on Codespace local time would be UTC
:
Should we enforce EST/EDT timezone on Codespace or what do think would be best to approach this?
Good catch. I can add some code to autodetect and inject into .devcontainer.json
, which will help with that. No rush on the local
tag in the meantime!
What does this tag do?