Tuly Posted March 2, 2017 Report Posted March 2, 2017 Anyone know how i can make the time in a Voicemail to Email to be 12 hour time not UTC like in the picture attached
Karl Stallknecht Posted March 2, 2017 Report Posted March 2, 2017 Edit the macro in the email template as follows:{{date_called.local|date:"l, F j, Y @ g:i A"}}This will produce something like this:Tuesday, February 28, 2017 @ 12:52 PMThe reason I have an @ symbol is because I found a bug where if you use the word "at" it thinks it's part of the macro...I cannot for the life of me find where I submitted this bug, but last I checked it was still an issue.See the following page if you want to customize further:http://php.net/manual/en/function.date.php
Karl Stallknecht Posted March 2, 2017 Report Posted March 2, 2017 Glad I'm not the only one who can't stand 24 hour time lol.
Corey Henderson Posted March 6, 2017 Report Posted March 6, 2017 try {{date_called.local|date:"l, F j, Y \\a\\t g:i A"}}
Karl Stallknecht Posted March 6, 2017 Report Posted March 6, 2017 I did, but there's an issue with the template engine and it incorrectly interpreted it. I filed a bug somewhere but of course I can't for the life of me find it...
Corey Henderson Posted March 6, 2017 Report Posted March 6, 2017 I found that if I directly type in the field is shows an error. But if I past the whole code from end to end directly it works.
Karl Stallknecht Posted March 6, 2017 Report Posted March 6, 2017 Hmm odd, I'll have to try that. Thanks!
Recommended Posts