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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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>
>><br>
>> With respect,<br>
>> Boris<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>