Um,
> $BOLTvar['$now'] = time() + 60*60*8; //make {now} 8 hours later
Didn't do the trick. [(time {now} "%y/%m/%d %H:%M:%S")] still give me
the GMT time, not my system (GMT+8) time. I now work at my notebook on
WinXP.
The errorReporting gave me:
==========
zh_CN.utf8 is bad
zh_CN is bad
zh_TW is bad
chinese is ok
chinese-simplified is ok
chs is ok
chinese-traditional is ok
cht is ok
==============
No meter I use "chinese", "chinese-traditional" or "cht" in
> setlocale(LC_ALL, "put your good locale string here");
It did not affect the output time. Weird.
Cheers, linly
On Feb 25, 9:35 pm, Hans <[email protected]> wrote:
> to set the locale to chinese in index.php or config.php you could try
>
> setlocale(LC_ALL, "zh_CN.utf8");
>
> or try this test first: add to index.php before the include_once line:
>
> $errorReporting = true;
> $a = Array("zh_CN.utf8", "zh_CN", "zh_TW", "chinese", "chinese-simplified",
> "chs", "chinese-traditional", "cht");
> foreach($a as $locale) {
> if(setlocale(LC_ALL, $locale) !== false) {
> echo "$locale is ok <br />";
> } else {
> echo "$locale is bad <br />";
> }
>
> }
>
> and then open a page.
> this shall give you info about which locale value is supported by your
> system. then use that with the
> code
> setlocale(LC_ALL, "put your good locale string here");
>
> Cheers,
> Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---