[PR #8] [MERGED] Use moment.js for date formatting #81

Closed
opened 2026-02-25 23:39:50 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: momentjs


📝 Commits (5)

  • f82d50b Use moment.js for date formatting
  • 28bbf88 Update docker start.sh for dateformat
  • cdd80c0 Update start.sh for MAILPORT option instead of PORT
  • 54888f1 Remove PORT option (thought I had this already)
  • 74c0c8e Merge 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 as October 3, 2019 9:43 AM

Updates 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.

## 📋 Pull Request Information **Original PR:** https://github.com/HaschekSolutions/opentrashmail/pull/8 **Author:** [@poblabs](https://github.com/poblabs) **Created:** 10/6/2019 **Status:** ✅ Merged **Merged:** 10/6/2019 **Merged by:** [@geek-at](https://github.com/geek-at) **Base:** `master` ← **Head:** `momentjs` --- ### 📝 Commits (5) - [`f82d50b`](https://github.com/HaschekSolutions/opentrashmail/commit/f82d50b56e27fe4df6e07f74a740284d5cbde352) Use moment.js for date formatting - [`28bbf88`](https://github.com/HaschekSolutions/opentrashmail/commit/28bbf8842650f18120c10cc0c3d1adf164315192) Update docker start.sh for dateformat - [`cdd80c0`](https://github.com/HaschekSolutions/opentrashmail/commit/cdd80c046bc18a6392eefb78abfcbdf8245ef753) Update start.sh for MAILPORT option instead of PORT - [`54888f1`](https://github.com/HaschekSolutions/opentrashmail/commit/54888f141017857bfba357ad01f8b8af101f4815) Remove PORT option (thought I had this already) - [`74c0c8e`](https://github.com/HaschekSolutions/opentrashmail/commit/74c0c8e4e8a71d5123f4a591b739c0d0bed4c30f) Merge branch 'master' into momentjs ### 📊 Changes **6 files changed** (+23 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 as `October 3, 2019 9:43 AM` Updates https://github.com/HaschekSolutions/opentrashmail/issues/7 Feel free to add/delete/modify to be better in line with the project if necessary. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 23:39:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrashmail#81
No description provided.