Can anyone see where the problem might be here:
I'm based in Mexico GMT -6
So to print the time on my calendar in Spanish:
<?php
$time = time(); // timestamp in the server's timezone
$time -= 6 60 60; // your local time is 6 hours = 21,600 seconds earlier than the server's time
setlocale(LC_TIME, "spanish");
echo strftime("%A %d %B %Y", $time);
?>
System admin on my server inform me that the following locale specifiers are supported:
Code:
C
POSIX
bokmal
bokmål
catalan
croatian
czech
danish
dansk
de_DE
de_DE.utf8
de_DE@euro
deutsch
dutch
eesti
en_GB
en_GB.utf8
en_US
estonian
finnish
français
french
galego
galician
german
greek
hebrew
hrvatski
hungarian
icelandic
italian
ja_JP
ja_JP.ujis
japanese
japanese.euc
japanese.sjis
ko_KR
korean
korean.euc
lithuanian
nb_NO
nb_NO.ISO-8859-1
norwegian
nynorsk
polish
portuguese
romanian
russian
slovak
slovene
slovenian
spanish
swedish
thai
turkish
anyone see a problem here ??