[SR-Users] Updating to SIREMIS 4.3

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 15 12:16:07 CET 2016


Hello,

you can also set the default timezone for siremis via
siremis/bin/app.inc file:

https://github.com/asipto/siremis/blob/master/siremis/bin/app.inc#L100

Cheers,
Daniel

On 15/12/2016 03:41, Cibin Paul wrote:
> Hi,
>
> Looks like the default timezone is not set for php. Can you check
> wether your php.ini file has *date.timezone = "UTC"?*
>
> Regards
> Cibin
>
> On 15-Dec-2016, at 6:49 AM, Kevin Greene <Kevin.Greene at oceanos.org
> <mailto:Kevin.Greene at oceanos.org>> wrote:
>
>> Hello fellow SIP people:
>>
>> I upgraded from SIREMIS 4.2 to 4.3 for my Kamailio system and I now
>> get the
>> error message shown below.
>> Any ideas on how to solve it?
>>
>> I am assuming there was a change on how SIREMIS did a date query and
>> my version
>> of Linux (6.8) or my PHP does not support it as expected.
>>
>> Any help would be useful.
>>
>> Thanks.
>>
>> Kevin
>>
>>
>>
>> [{"target":"ERROR","content":"\n[2016-12-14 22:59:55 (GMT)] An exception
>> occurred while executing this script:
>> \nError message: #2, date(): It is not safe to rely on the system's
>> timezone
>> settings. You are *required* to use the date.timezone setting or the
>> date_default_timezone_set() function. In case you used any of those
>> methods and
>> you are still getting this warning, you most likely misspelled the
>> timezone
>> identifier. We selected 'UTC' for 'UTC\/0.0\/no DST' instead<\/font>
>> \nScript name and line number of error:
>> \/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php:160<\/font>
>> \n
>>
>> *function:<\/b> errorHandler ( 2, \"date(): It is not safe to rely on the
>> system's timezone settings...\",
>> \"\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php\",
>> 160,
>> Array(8) ) @ \/var\/www\/siremis-4.3.0\/openbiz\/bin\/sysheader.inc 117\n
>> *function:<\/b> userErrorHandler ( 2, \"date(): It is not safe to
>> rely on the
>> system's timezone settings...\",
>> \"\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php\",
>> 160,
>> Array(8) ) @ \n
>> *function:<\/b> date ( \"m\/d\/Y\" ) @
>> \/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php 160\n
>>
>>
>> The "date" command returns:
>>
>> $ date
>> Thu Dec 15 01:13:41 UTC 2016
>>
>> The /etc/localtime entry is:
>>
>> $ more /etc/localtime
>> TZif2
>> UTC
>>
>> $ which php
>> /usr/bin/php
>>
>> $ php -version
>> PHP 5.3.3 (cli) (built: Aug 11 2016 13:38:15)
>> Copyright (c) 1997-2010 The PHP Group
>> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>>
>> PHP I am using is the latest patched version I have.
>>
>>
>>
>> ***
>>
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161215/6e5d21ef/attachment.html>


More information about the sr-users mailing list