473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

different timezones in different directories

Hi all,

I have a strange problem. Iset up php 5.1.6 on my Solaris10 box and
after that i get errors on my webbpage:
"Warning: date() [function.date]: It is not safe to rely on the
system's timezone settings. Please use the date.timezone setting, the
TZ environment variable 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 had to
select 'UTC' because your platform doesn't provide functionality for
the guessing algorithm"
I searched a little and foun out by setting up date.timezone in php.ini
it works.
Bur then I have to recompile php for support of zlib, and after that, I
get the error again. Now I found out the following:
# pwd
/usr/local
# php -i |grep timezone
Default timezone =Europe/Luxembourg
date.timezone =Europe/Luxembourg =Europe/Luxembourg
#
# cd ..
# pwd
/usr
# php -i |grep timezone
Default timezone =UTC
date.timezone =no value =no value
How is it possible that, when I'm in /usr/local the settings are OK,
and in all other location the settings are not.
Here header output of phpinfo:
PHP Version 5.1.6

System SunOS my-web 5.10 Generic_118844-19 i86pc
Build Date Nov 5 2006 16:24:04
Configure Command './configure' '--prefix=/usr/local'
'--with-mysql=/usr/local/mysql
'--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib=/usr/local'

thanx in advance

Nov 6 '06 #1
1 1466
Hi again,
I think I have found the problem. It seems my php.ini was not located
in the right directory, I still can not understand why it worked under
/usr/local and not elsewhere, but after copying the file in the right
directory, it works.
glini schrieb:
Hi all,

I have a strange problem. Iset up php 5.1.6 on my Solaris10 box and
after that i get errors on my webbpage:
"Warning: date() [function.date]: It is not safe to rely on the
system's timezone settings. Please use the date.timezone setting, the
TZ environment variable 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 had to
select 'UTC' because your platform doesn't provide functionality for
the guessing algorithm"
I searched a little and foun out by setting up date.timezone in php.ini
it works.
Bur then I have to recompile php for support of zlib, and after that, I
get the error again. Now I found out the following:
# pwd
/usr/local
# php -i |grep timezone
Default timezone =Europe/Luxembourg
date.timezone =Europe/Luxembourg =Europe/Luxembourg
#
# cd ..
# pwd
/usr
# php -i |grep timezone
Default timezone =UTC
date.timezone =no value =no value
How is it possible that, when I'm in /usr/local the settings are OK,
and in all other location the settings are not.
Here header output of phpinfo:
PHP Version 5.1.6

System SunOS my-web 5.10 Generic_118844-19 i86pc
Build Date Nov 5 2006 16:24:04
Configure Command './configure' '--prefix=/usr/local'
'--with-mysql=/usr/local/mysql
'--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib=/usr/local'

thanx in advance
Nov 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Michael | last post by:
I would like to set the timezone of a thread to allow me to calculate the UTC time for data sourced from a number of time zones. Although this can be done in C and C++, I annot find how to do...
2
by: H. Blijlevens | last post by:
We're currently working on an application (VB.Net) that needs to keep track of times in different timezones. For instance, the application is run in Berlin and needs to display the exact time in...
1
by: stefari | last post by:
Hi all I have to develop an embedded database using memory FLASH and memory RAM Some tables must be saved in RAM and some tables in FLASH ( RAM and FLASH are two different mounted directories in...
2
by: Stefano Farina | last post by:
Hi all I have to develop an embedded database using memory FLASH and memory RAM Some tables must be saved in RAM and some tables in FLASH ( RAM and FLASH are two different mounted directories in...
7
by: Dick | last post by:
I have a long list of events. I know where each event took place (globally) and when (using the event’s local time). I want to do some comparisons between these date/times. I thought I would...
7
by: =?Utf-8?B?U3R1?= | last post by:
I have a ASP.NET Ajax app (using client library) calling ASP.NET Ajax-enabled web services. We are making use of the javascript proxies generated by ASP.NET Ajax. The problem we have is that the...
3
by: Daz | last post by:
Hello everyone. I am creating a JavaScript project which will allow users to see what time it is in other countries. I am wondering if there's any way to have the server work this out, without...
7
by: David T. Ashley | last post by:
In a web database (PHP), per user, I'd like to allow each user to specify their timezone (this would change how times are adjusted for display for that user). How do I enumerate all possible...
27
by: Sanjay | last post by:
Hi All, I am using pytz.common_timezones to populate the timezone combo box of some user registration form. But as it has so many timezones (around 400), it is a bit confusing to the users. Is...
6
by: jehugaleahsa | last post by:
Hello: I would like it so that the time displayed was always for CDT/CDS. Potentially, the application can be run at locations in Mountain Time or Central Time. This is what I have now: //...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.