Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ability to specify a date and time format #75

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

atownsend247
Copy link

This gives the user an option to override the default date format using the global glass_config.js file.
This was requested in the Issue #67 . I have added the moment library as this aids in parsing and formatting dates with ease.
I have replaced all instances of the human_time function with that using moment instead. The available options for the date/time can be derived from the following options found on the moment documentation: https://momentjs.com/docs/#/displaying/format/

Happy to further discuss changes/amendments if required.
I created this as I wanted to tweak the date/time formats myself as requested in Issue #67, so thought I'd go ahead and fix it now I've had some free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant