mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 06:35:55 +03:00
[PR #8] [MERGED] Use moment.js for date formatting #81
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HaschekSolutions/opentrashmail/pull/8
Author: @poblabs
Created: 10/6/2019
Status: ✅ Merged
Merged: 10/6/2019
Merged by: @geek-at
Base:
master← Head:momentjs📝 Commits (5)
f82d50bUse moment.js for date formatting28bbf88Update docker start.sh for dateformatcdd80c0Update start.sh for MAILPORT option instead of PORT54888f1Remove PORT option (thought I had this already)74c0c8eMerge branch 'master' into momentjs📊 Changes
6 files changed (+23 additions, -5 deletions)
View changed files
📝
docker/rootfs/start.sh(+12 -2)📝
example.config.ini(+4 -1)📝
web/api.php(+1 -0)📝
web/index.html(+1 -0)➕
web/js/moment-with-locales.min.js(+1 -0)📝
web/js/opentrashmail.js(+4 -2)📄 Description
Update to use moment.js to help with time and date formatting. Default configuration has day.month.year hour:minute configuration, but can be easily overridden using moment.js's string formatting.
moment.js also has locale aware time formatting. My example config for my USA locale is to use
DATEFORMAT="LLL"which formats the date in my locale asOctober 3, 2019 9:43 AMUpdates https://github.com/HaschekSolutions/opentrashmail/issues/7
Feel free to add/delete/modify to be better in line with the project if necessary.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.