<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>you can also set the default timezone for siremis via
siremis/bin/app.inc file:</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/asipto/siremis/blob/master/siremis/bin/app.inc#L100">https://github.com/asipto/siremis/blob/master/siremis/bin/app.inc#L100</a><br>
</p>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 15/12/2016 03:41, Cibin Paul wrote:<br>
</div>
<blockquote cite="mid:BD27C076-EDA3-4242-9B1F-D79F887D0225@me.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Hi,</div>
<div><br>
</div>
<div>Looks like the default timezone is not set for php. Can you
check wether your php.ini file hasĀ <b>date.timezone = "UTC"?</b></div>
<div><br>
</div>
<div>Regards</div>
<div>Cibin</div>
<div>
<div><br>
</div>
</div>
<div>On 15-Dec-2016, at 6:49 AM, Kevin Greene <<a
moz-do-not-send="true" href="mailto:Kevin.Greene@oceanos.org">Kevin.Greene@oceanos.org</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><span>Hello fellow SIP people:</span><br>
<span></span><br>
<span>I upgraded from SIREMIS 4.2 to 4.3 for my Kamailio
system and I now get the</span><br>
<span>error message shown below.</span><br>
<span>Any ideas on how to solve it?</span><br>
<span></span><br>
<span>I am assuming there was a change on how SIREMIS did a
date query and my version</span><br>
<span>of Linux (6.8) or my PHP does not support it as
expected.</span><br>
<span></span><br>
<span>Any help would be useful.</span><br>
<span></span><br>
<span>Thanks.</span><br>
<span></span><br>
<span>Kevin</span><br>
<span></span><br>
<span></span><br>
<span></span><br>
<span>[{"target":"ERROR","content":"\n[2016-12-14 22:59:55
(GMT)] An exception</span><br>
<span>occurred while executing this script:</span><br>
<span>\nError message: #2, date(): It is not safe to rely on
the system's timezone</span><br>
<span>settings. You are *required* to use the date.timezone
setting or the</span><br>
<span>date_default_timezone_set() function. In case you used
any of those methods and</span><br>
<span>you are still getting this warning, you most likely
misspelled the timezone</span><br>
<span>identifier. We selected 'UTC' for 'UTC\/0.0\/no DST'
instead<\/font></span><br>
<span>\nScript name and line number of error:</span><br>
<span>\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php:160<\/font></span><br>
<span>\n</span><br>
<span></span><br>
<span>*function:<\/b> errorHandler ( 2, \"date(): It is
not safe to rely on the</span><br>
<span>system's timezone settings...\",</span><br>
<span>\"\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php\",
160,</span><br>
<span>Array(8) ) @
\/var\/www\/siremis-4.3.0\/openbiz\/bin\/sysheader.inc 117\n</span><br>
<span>*function:<\/b> userErrorHandler ( 2, \"date(): It
is not safe to rely on the</span><br>
<span>system's timezone settings...\",</span><br>
<span>\"\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php\",
160,</span><br>
<span>Array(8) ) @ \n</span><br>
<span>*function:<\/b> date ( \"m\/d\/Y\" ) @</span><br>
<span>\/var\/www\/siremis-4.3.0\/openbiz\/bin\/service\/logService.php
160\n</span><br>
<span></span><br>
<span></span><br>
<span>The "date" command returns:</span><br>
<span></span><br>
<span>$ date</span><br>
<span>Thu Dec 15 01:13:41 UTC 2016</span><br>
<span></span><br>
<span>The /etc/localtime entry is:</span><br>
<span></span><br>
<span>$ more /etc/localtime</span><br>
<span>TZif2</span><br>
<span>UTC</span><br>
<span></span><br>
<span>$ which php</span><br>
<span>/usr/bin/php</span><br>
<span></span><br>
<span>$ php -version</span><br>
<span>PHP 5.3.3 (cli) (built: Aug 11 2016 13:38:15)</span><br>
<span>Copyright (c) 1997-2010 The PHP Group</span><br>
<span>Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend
Technologies</span><br>
<span></span><br>
<span>PHP I am using is the latest patched version I have.</span><br>
<span></span><br>
<span></span><br>
<span></span><br>
<span>***</span><br>
<span></span><br>
<span></span><br>
<span></span><br>
<span></span><br>
<span>_______________________________________________</span><br>
<span>SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br>
<span><a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>