[asterisk-users] SAY TIME + PHPAGI + Timezone

Tilghman Lesher
Fri, 18 Jan 2008 22:42:00 -0000

On Friday 18 January 2008 14:13:55 Nitesh Divecha wrote:
> Is there any way to change the timezone on the fly? I have this little
> time clock program running on Asterisk system developed using PHPAGI.
> Currently, whenever user logs in, Asterisk will prompt the current
> system time using "$agi->say_time();" which executes "SAY
TIME". Now the
> current timezone set on the system is "PST", and I have a request
to
> prompt multiple timezones based on the users location.

Don't use SAY TIME.  Use EXEC with the SayUnixTime application and the
appropriate arguments.

--
Tilghman