<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Boris opened <meta charset="utf-8"><a href="http://jira.freeswitch.org/browse/MODAPP-421">http://jira.freeswitch.org/browse/MODAPP-421</a> . I'll take a look into this one.<div><br></div><div>Thanks for the report.</div><div><br></div><div>Mike</div><div><br><div><div>On Apr 22, 2010, at 6:22 PM, Michael Collins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Would you please open a JIRA on this one?<br>-MC<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 6:55 AM, <span dir="ltr"><<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
IMHO this is bug, as of struct tm man page:<br>
int tm_hour; /* hours (0 - 23) */<br>
so tm_hour shouldn't be incremented. But looking at code I see no reason<br>
why the behavior is changed with different timezone.<br>
<div><div></div><div class="h5"><br>
> I have same problem with mod_say_ru if timezone is set to<br>
><br>
> <action application="set" data="timezone=Europe/Kiev"/><br>
><br>
> And i don't understand why "tm.tm_hour + 1"<br>
> In source code<br>
> if (say_time) {<br>
> switch_snprintf(buf, sizeof(buf), "%d:%d:%d", tm.tm_hour +<br>
> 1,<br>
> tm.tm_min, tm.tm_sec);<br>
> say_args->type = SST_TIME_MEASUREMENT;<br>
> ru_say_time(session, buf, say_args, args);<br>
><br>
> As temporary resolution i just set different timezone :)<br>
><br>
><br>
> On Wednesday 21 April 2010 17:30:18 <a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a> wrote:<br>
>> Hello!<br>
>><br>
>> I have an extension for the current date/time:<br>
>> <extension name="SayTime"><br>
>> <condition field="destination_number" expression="^9000$"><br>
>> <action application="answer"/><br>
>> <action application="say" data="ru current_date_time<br>
>> pronounced $strftime(%s)"/><br>
>> <action application="sleep" data="1000"/><br>
>> <action application="hangup"/><br>
>> </condition><br>
>> </extension><br>
>><br>
>> The extension works fine, but time is +1 hour of current time. For<br>
>> example<br>
>> current time is 16:00, the extension says 17:00. I use FreeSwitch 1.0.6<br>
>> (from release tarball), CentOS 5.4, ntp synched, timezone YEKT (summer<br>
>> time in effect now, so tz=YEKST). So, my question is - something wrong<br>
>> with my extension configuration or this is bug in mod_say_ru or may be<br>
>> strfmt?<br>
>></div></div></blockquote></div></blockquote></div></div></body></html>