Any news posting i made caused the same error.
Code:
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated.
Use the LC_* -constants instead. in \phpWeb\mainfile.php on line 565
The post is visible and a difference that i saw is in the time... Mine reads "Central Standard Time" where it should read the exact time of the story post.
Code:
Posted by Admin on Friday, January 17 @ Central Standard Time (0 reads)
(comments? | Score: 0)
Here's the original section of code surrounding line 565 from mainfile.php:
Code:
559:/*********************************************************/
560:/* formatting stories */
561:/*********************************************************/
562:
563:function formatTimestamp($time) {
564: global $datetime, $locale;
565: setlocale ("LC_TIME", "$locale");
566: ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
567: $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
568: $datetime = ucfirst($datetime);
569: return($datetime);
570:}
Here's what i changed, this change fixes the warning message that i get, but i still saw "Central Standard Time" instead of the exact time of the post.
Code:
565: setlocale (LC_TIME, "$locale");
from what i've seen and read, there are conflicts with the strftime function and Windows.(My server is W2k) I had to change the date format in line 567:
Code:
567: $datetime = strftime("%B %d @ %I:%M:%S %p %Z", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
not sure about your "ob_gzhandler" error...
Dukaruk