[asterisk-bugs] [JIRA] (ASTERISK-22616) timestring set by TESTTIME is ignored by IFTIME as well as GotoIfTime

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Mon Sep 30 10:35:03 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-22616:
---------------------------------------

    Description: 
When using TESTTIME it's expected, that the TIME-functions will honor the value and make the correct decision which may be different from the one valid for server-time.
Unfortunately the test seems to ignore TESTTIME:

ServerTime is in CEST (GMT+2) and the following snippet is executed between 14:00 GMT and 15:00 GMT:
{noformat}
Set(LTZ=Europe/London);
Set(datewithtz=${STRFTIME(${EPOCH},${LTZ},%Y/%m/%d %H:%M:%S)});
Set(TESTTIME=${datewithtz});
ifTime(08:00-16:00|*|*|*) {
      NoOp(fitted);
} else {
      NoOp(NOT fitted);
}
{noformat}

For local time (without TESTTIME) its correct to have the "NOT fitted" output. But I would expect to have the "fitted" output here as the TESTTIME ist one hour less (GMT+1).


  was:
When using TESTTIME it's expected, that the TIME-functions will honor the value and make the correct decision which may be different from the one valid for server-time.
Unfortunately the test seems to ignore TESTTIME:

ServerTime is in CEST (GMT+2) and the following snippet is executed between 14:00 GMT and 15:00 GMT:

Set(LTZ=Europe/London);
Set(datewithtz=${STRFTIME(${EPOCH},${LTZ},%Y/%m/%d %H:%M:%S)});
Set(TESTTIME=${datewithtz});
ifTime(08:00-16:00|*|*|*) {
      NoOp(fitted);
} else {
      NoOp(NOT fitted);
}

For local time (without TESTTIME) its correct to have the "NOT fitted" output. But I would expect to have the "fitted" output here as the TESTTIME ist one hour less (GMT+1).


    
> timestring set by TESTTIME is ignored by IFTIME as well as GotoIfTime
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-22616
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22616
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 1.8.23.1, 11.5.1
>            Reporter: Olaf Winkler
>            Severity: Minor
>
> When using TESTTIME it's expected, that the TIME-functions will honor the value and make the correct decision which may be different from the one valid for server-time.
> Unfortunately the test seems to ignore TESTTIME:
> ServerTime is in CEST (GMT+2) and the following snippet is executed between 14:00 GMT and 15:00 GMT:
> {noformat}
> Set(LTZ=Europe/London);
> Set(datewithtz=${STRFTIME(${EPOCH},${LTZ},%Y/%m/%d %H:%M:%S)});
> Set(TESTTIME=${datewithtz});
> ifTime(08:00-16:00|*|*|*) {
>       NoOp(fitted);
> } else {
>       NoOp(NOT fitted);
> }
> {noformat}
> For local time (without TESTTIME) its correct to have the "NOT fitted" output. But I would expect to have the "fitted" output here as the TESTTIME ist one hour less (GMT+1).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list