Skip to content

Adding ability to specify a date and time format#75

Open
atownsend247 wants to merge 5 commits into
Akkadius:masterfrom
atownsend247:date-options
Open

Adding ability to specify a date and time format#75
atownsend247 wants to merge 5 commits into
Akkadius:masterfrom
atownsend247:date-options

Conversation

@atownsend247

Copy link
Copy Markdown

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.

1 participant