You are not logged in.
Hello,
I've set a LAMP on my Arch Linux computer.. It's an old P3 733 Mhz (128 MB SD RAM) computer..
Anyway, i create a simple PHP script that only contains:
----
echo date("l");
----
But it prints the error message:
Fatal error: date() [<a href='function.date'>function.date</a>]: Timezone database is corrupt - this should *never* happen! in /home/tunix/public_html/deneme.php on line 1
Please help me..
Quis custodiet ipsos custodiet?
Offline
when you type 'date' on the command line, what do you get?
also, make sure you ran though the locale-gen stuff
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
[02:41] (tunix@penguix ~)$ date
Cum Ara 29 02:41:45 EET 2006
[02:41] (tunix@penguix ~)$ sudo locale-gen
Generating locales...
tr_TR.UTF-8... done
Generation complete.
Quis custodiet ipsos custodiet?
Offline
Nobody have this problem ??
Quis custodiet ipsos custodiet?
Offline
Have you actually tried setting the timezone in your php.ini? Something like
date.timezone = "Europe/Istanbul"
should do fine. Also check /usr/share/zoneinfo. Maybe permissions are wrong or you're missing some files there (check if you got UTC or Europe/whatever in there)?
Offline
I've allready set that.. Which permissions should I check ?
I entered a bug report about this problem.
Quis custodiet ipsos custodiet?
Offline
I just discovered that, it only occurs when I restart the httpd service by writing /etc/rc.d/httpd restart , but it doesn't occur when I restart the system completely.. Should I restart some other service ? Anybody have an idea why it happens ?
Quis custodiet ipsos custodiet?
Offline
I just discovered that, it only occurs when I restart the httpd service by writing /etc/rc.d/httpd restart , but it doesn't occur when I restart the system completely.. Should I restart some other service ? Anybody have an idea why it happens ?
How did you setup you default timezone?
bash-3.2$ file /etc/localtime
/etc/localtime: symbolic link to `/usr/share/zoneinfo/Europe/Berlin'
Offline
bash-3.2$ file /etc/localtime /etc/localtime: symbolic link to `/usr/share/zoneinfo/Europe/Berlin'
Since initscripts 0.8 it should be not symbolic link, but a copy of proper file in /usr/share/zoneinfo.
to live is to die
Offline
It's a copied version of /usr/share/zoneinfo/Europe/Istanbul
Quis custodiet ipsos custodiet?
Offline
I changed my locale to C, and it started working again. I changed my locale from tr_TR.UTF-8 to tr_TR.ISO8859-9 and then it started working again.. If doesn't work only if I use tr_TR.UTF-8
So I started thinking that it's an UTF-8 problem
Quis custodiet ipsos custodiet?
Offline
I changed my locale to C, and it started working again. I changed my locale from tr_TR.UTF-8 to tr_TR.ISO8859-9 and then it started working again.. If doesn't work only if I use tr_TR.UTF-8
So I started thinking that it's an UTF-8 problem
This seems to be a php-bug, GNU date works fine:
bash-3.2$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r 'date("l");'
Fatal error: date(): Timezone database is corrupt - this should *never* happen! in Command line code on line 1
bash-3.2$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 date +%A
Cumartesi
Offline