<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">Tilghman<BR><BR>Thanks for your response.<BR> <BR> 1. Based on your respone the wiki is incorrect and the T option is not avaible as the time zone. It sounds like time zone prompts would need to be recored if nessassary then.<BR> <A href="http://www.voip-info.org/wiki/view/say+datetime">http://www.voip-info.org/wiki/view/say+datetime</A>. Should I be able to specify a full path to our custom prompts folders so that they don't get wiped durring upgrades?<BR><BR> 2. As for specifying the [timezone] value. I tried putting in US/Centar and Central<BR> They are listed under /usr/share/zoneinfo/US<BR> <BR> Here is what I came up with. <BR> 1. If the time zone file is under /usr/share/zoneinfo You can specify it by name and it will use it.<BR> 2. If the time zone is under a sub folder /usr/share/zondinfo/US/ ie.. Central, Eastern You must specify the full path so it can use it. /usr/share/zondinfo/US/Central<BR> 3. If you know the GMT numeric offset you can multiply it by -1 and then pass it as a numeric as long as your time is in UTC<BR><BR>And confirmations of this would be apperciated. <BR>If this information is correct I will update the wiki with it so that others don't have to go throught the same trial and errors I have.<BR><BR>Thanks<BR>Bryant<BR><BR><BR><BR><FONT face="Tahoma, Arial, Sans-Serif" size=2>
<HR align=center width="100%" SIZE=2>
<B>From</B>: "Tilghman Lesher" <tlesher@digium.com><BR><B>Sent</B>: Thursday, January 28, 2010 4:01 PM<BR><B>To</B>: bryantz@zktech.com, "Asterisk Developers Mailing List" <asterisk-dev@lists.digium.com><BR><B>Subject</B>: Re: [asterisk-dev] AGI SAY DATETIME not working as expected</FONT><BR><BR>On Thursday 28 January 2010 13:40:49 Bryant Zimmerman wrote:<BR>> Can anyone give me some insight into the SAY DATETIME agi command.<BR>><BR>> I am giving it a value like<BR>> SAY DATETIME 1264686554 # ABdY'digits/at'IMpT Central<BR>><BR>> When it says the date and time there are several issues.<BR>> 1. According to the wicki the ABdY'digits/at'IMpT string should read<BR>> the time zone on the end but it gives me the full military time instead of<BR>> the time zone. How do I get it to read the time zone?<BR><BR>Well, there are no recordings for the name of the timezone, so you'd have to<BR>provide your own in the single quotes to read back.<BR><BR>> 2. I have tried <BR>> many combinations for the [TIMEZONE] value. If I don't provide a value it<BR>> reads the time in UTC if I provide any value it reads the time in the local<BR>> machine time zone (Eastern). What should I be using for timezone values to<BR>> get this to work correctly? I have tried Central, Eastern, Pacific,<BR>> Mountain. I have tried putting US/ZoneValue and nothing seems to be<BR>> working. I want to be able to have my app vary the time based on the time<BR>> zone for the called party wich may be in a zone different from the Local<BR>> Machine time zone.<BR><BR>Have you verified that the name of the zone you're looking for is a literal<BR>file that can be found in /usr/share/zoneinfo on the Asterisk machine? If the<BR>file is not there, it won't work. If you're on Solaris, the alternate<BR>location is /usr/share/lib/zoneinfo.<BR><BR>On my system:<BR>$ <BR>ls -ld /usr/share/zoneinfo/Eastern /usr/share/zoneinfo/Central /usr/share/zoneinfo/Mountain /usr/share/zoneinfo/Pacific /usr/share/zoneinfo/US<BR>ls: cannot access /usr/share/zoneinfo/Eastern: No such file or directory<BR>ls: cannot access /usr/share/zoneinfo/Central: No such file or directory<BR>ls: cannot access /usr/share/zoneinfo/Mountain: No such file or directory<BR>drwxr-xr-x 2 root root 4096 2010-01-14 00:18 /usr/share/zoneinfo/Pacific<BR>drwxr-xr-x 2 root root 4096 2010-01-14 00:18 /usr/share/zoneinfo/US<BR><BR>-- <BR>Tilghman Lesher<BR>Digium, Inc. | Senior Software Developer<BR>twitter: Corydon76 | IRC: Corydon76-dig (Freenode)<BR>Check us out at: www.digium.com & www.asterisk.org<BR><BR></font>