mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
fix(flag-email): correctly format date
This commit is contained in:
parent
c55ebf5c07
commit
635ebf626b
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ api.flagChatMessage = function(req, res, next){
|
|||
if(err) return next(err);
|
||||
if (isProd){
|
||||
utils.txnEmail({email: nconf.get('FLAG_REPORT_EMAIL')}, 'flag-report-to-mods', [
|
||||
{name: "MESSAGE_TIME", content: message.timestamp},
|
||||
{name: "MESSAGE_TIME", content: (new Date(message.timestamp)).toString()},
|
||||
{name: "MESSAGE_TEXT", content: message.text},
|
||||
|
||||
{name: "REPORTER_USERNAME", content: user.profile.name},
|
||||
|
|
|
|||
Loading…
Reference in a new issue