Currently, the blog list dates are hardcoded to the defaultContentLanguage option, typically set to English. Consequently, regardless of the selected language, dates are always displayed in English.
This PR fixes this using the builtin function time.Format, which returns the date as formatted and localized string.
Currently, the blog list dates are hardcoded to the
defaultContentLanguage
option, typically set to English. Consequently, regardless of the selected language, dates are always displayed in English.This PR fixes this using the builtin function
time.Format
, which returns the date as formatted and localized string.