Karl Stallknecht Posted October 17, 2017 Report Posted October 17, 2017 We have a few accounts with offices in different timezones and I thought it would be helpful to show the timezone on the voicemail email if they forward the email between offices and are trying to figure out what the actual time when the voicemail was received was. I used the dropdown and added user.timezone but it just doesn't show anything when I left a test voicemail. My full string is: {{date_called.local|date:"l, F j, Y @ g:i A"}} {{user.timezone}} Which when I tested it just now it shows: Monday, October 16, 2017 @ 8:17 PM (simply missing the timezone at the end) Am I doing something wrong or is this a bug?
2600Hz Employees JR^ Posted October 17, 2017 2600Hz Employees Report Posted October 17, 2017 This sounds like a bug to me. Can you file a ticket against the back-end for that one?
Administrators mc_ Posted October 17, 2017 Administrators Report Posted October 17, 2017 Have you looked at using the 'date' filter instead? Perhaps try adding 'e' to the date_called args?
Administrators mc_ Posted October 17, 2017 Administrators Report Posted October 17, 2017 Also, is the voicemail box owned by a user? And does the user have a timezone set on the user doc?
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 On 10/17/2017 at 8:46 PM, mc_ said: Have you looked at using the 'date' filter instead? Perhaps try adding 'e' to the date_called args? Expand I tried that and it didn't work either. On 10/17/2017 at 8:47 PM, mc_ said: Also, is the voicemail box owned by a user? And does the user have a timezone set on the user doc? Expand Yes, and yes.
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 On 10/17/2017 at 4:20 PM, JR^ said: This sounds like a bug to me. Can you file a ticket against the back-end for that one? Expand KAZOO-5726
Guest hesaam Posted October 18, 2017 Report Posted October 18, 2017 What is the Kazoo version? For Kazoo 4.0 and older there is no "user" macro set for template. You can use "account.timezone" instead. For Kazoo v4.1+ the user macro is set properly.
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 On 10/18/2017 at 6:57 PM, hesaam said: What is the Kazoo version? For Kazoo 4.0 and older there is no "user" macro set for template. You can use "account.timezone" instead. For Kazoo v4.1+ the user macro is set properly. Expand I'm on 4.1 We can't use account.timezone because the account has phones in different timezones, so we need to use the timezone of the user in question.
Guest hesaam Posted October 18, 2017 Report Posted October 18, 2017 On 10/18/2017 at 7:05 PM, Karl Stallknecht said: I'm on 4.1 We can't use account.timezone because the account has phones in different timezones, so we need to use the timezone of the user in question. Expand Can you give a sample log from teletype application?
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 On 10/18/2017 at 7:13 PM, hesaam said: Can you give a sample log from teletype application? Expand Unfortunately I don't have access to that
Guest hesaam Posted October 18, 2017 Report Posted October 18, 2017 Oh I forgot if you're on 4.1, timezone is also set on "date_called" like "{{date_called.timezone}}". This is the same local timezone which is used to convert the call date timestamp for "{{date_called.local}}".
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 On 10/18/2017 at 7:30 PM, hesaam said: Oh I forgot if you're on 4.1, timezone is also set on "date_called" like "{{date_called.timezone}}". This is the same local timezone which is used to convert the call date timestamp for "{{date_called.local}}". Expand That worked, thanks!
Karl Stallknecht Posted October 18, 2017 Author Report Posted October 18, 2017 Actually another question: that now says "America/New_York" - is there any way to say EST/EDT instead?
Guest hesaam Posted October 18, 2017 Report Posted October 18, 2017 Timezone value is coming from Voicemail box, if not found from the owner (user) and if not found again then account and then system. Can you check that you have set the correct time zone for voicemail box or the user? By the way, do the "{{user.first_name}}" or "{{user.last_name}}" are present?
Recommended Posts