<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">Tilghman<BR><BR>Thanks for your response.<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;1. Based on your respone the wiki is incorrect and the T option is not avaible as the time zone.&nbsp;It sounds like&nbsp;time zone prompts would need to be recored if nessassary then.<BR>&nbsp;&nbsp; &nbsp;&nbsp;<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&nbsp;specify a full path to our&nbsp;custom prompts folders&nbsp;so that they don't get wiped durring upgrades?<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;2.&nbsp; As for specifying the [timezone] value. I tried putting in US/Centar and Central<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;They are listed under /usr/share/zoneinfo/US<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Here is what I came up with.&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. If the time zone file is under /usr/share/zoneinfo&nbsp;&nbsp; You can specify it by name and it will use it.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. If the time zone is under a sub folder /usr/share/zondinfo/US/&nbsp; ie.. Central, Eastern&nbsp;&nbsp; You must specify the full path so it can use it.&nbsp;&nbsp;/usr/share/zondinfo/US/Central<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. If you know the GMT numeric&nbsp;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" &lt;tlesher@digium.com&gt;<BR><B>Sent</B>: Thursday, January 28, 2010 4:01 PM<BR><B>To</B>: bryantz@zktech.com, "Asterisk Developers Mailing List" &lt;asterisk-dev@lists.digium.com&gt;<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>&gt; Can anyone give me some insight into the SAY DATETIME agi command.<BR>&gt;<BR>&gt; I am giving it a value like<BR>&gt; SAY DATETIME 1264686554 # ABdY'digits/at'IMpT Central<BR>&gt;<BR>&gt; When it says the date and time there are several issues.<BR>&gt; 1. According to the wicki the ABdY'digits/at'IMpT string should read<BR>&gt; the time zone on the end but it gives me the full military time instead of<BR>&gt; 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>&gt; 2. I have tried <BR>&gt; many combinations for the [TIMEZONE] value. If I don't provide a value it<BR>&gt; reads the time in UTC if I provide any value it reads the time in the local<BR>&gt; machine time zone (Eastern). What should I be using for timezone values to<BR>&gt; get this to work correctly? I have tried Central, Eastern, Pacific,<BR>&gt; Mountain. I have tried putting US/ZoneValue and nothing seems to be<BR>&gt; working. I want to be able to have my app vary the time based on the time<BR>&gt; zone for the called party wich may be in a zone different from the Local<BR>&gt; 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 &amp; www.asterisk.org<BR><BR></font>