Ability to configure custom date formats #40
adrianmo
commented
Jan 18, 2017
|
| @@ -37,7 +37,10 @@ paginate = 10 | ||
| about_us = "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>" | ||
| copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." | ||
| - date_format = "2006-01-02" |
ryanfox1985
Jan 18, 2017
•
Member
Hi @adrianmo, maybe in the templates we need to prevent if the user forget the date_format parameter in the configuration file or the format is wrong?
adrianmo
Jan 18, 2017
Contributor
@ryanfox1985 in the config file it's already stated that the date_format has to be a Go's compatible time format, and an example is already given. So I don't see the need to add more complexity and check the date format in the templates.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment