登录osb管理页面时报date-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 2090642
  • 博文数量: 195
  • 博客积分: 4378
  • 博客等级: 上校
  • 技术积分: 4046
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-09 11:37
个人简介

白天和黑夜只交替没交换无法想像对方的世界

文章分类

全部博文(195)

文章存档

2014年(3)

2013年(20)

2012年(18)

2011年(107)

2010年(17)

2009年(5)

2008年(20)

2007年(5)

相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: oracle

2011-12-19 14:24:57

登录osb管理页面时报时区错误如下:

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 in /apps/oracle/osbackup/apache/htdocs/php/common.php on line 1963

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 in /apps/oracle/osbackup/apache/htdocs/php/common.php on line 1964

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 in /apps/oracle/osbackup/apache/htdocs/php/common.php on line 1965

warning: strftime() [function.strftime]: 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 in /apps/oracle/osbackup/apache/htdocs/php/common.php on line 1966

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 in /apps/oracle/osbackup/apache/htdocs/php/common.php on line 1968

cause: 
   这是因为php所取的时间是格林威治标准时间,所以和你当地的时间会有出入格林威治标准时间和北京时间大概差8个小时左右,我们可以按照下面的方法解决。 

解决办法: 

1、在页头使用date_default_timezone_set()设置我的默认时区为北京时间,即 

 


date_default_timezone_set("prc"); 

?>就可以了。 

2、在php.ini中设置date.timezone的值为prc,设置好以后的为:date.timezone=prc,同时取消这一行代码的注释,即去掉前面的分号就可以了。

 

打开php5.ini查找date.timezone 去掉前面的分号 = 后面加xxx,重启http服务(如apache2或iis等)即可。
xxx可以任意正确的值。对于我们国内来 说:可以为以下值:asia/chongqing ,asia/shanghai ,asia/urumqi (依次为重庆,上海,乌鲁木齐)港台地区可用:asia/macao ,asia/hong_kong ,asia/taipei (依次为澳门,香港,台北),还有新加坡:asia/singapore,当然prc也行。

 

阅读(2861) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图