Php with Apache returns UTC time in windows OS

General discussions related to php

Moderators: macek, egami, gesf

lg007
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Feb 03, 2013 3:29 am

Php with Apache returns UTC time in windows OS

Postby lg007 » Sun Feb 03, 2013 3:36 am

I am using Php 5.3.1 with apache server in windows machine.I am trying to save the current time stamp in the database table.But I am not getting the current time stamp.It returns some other value
Apache Version :
2.2.6
PHP Version :
5.3.1
My sample code is:
<?
echo date("Y-m-d H:i:s");
?>


This will return current date, but current time together with this is different,say some 3 hrs different from the exact time.I hope somebody can help me.
In Php settings,I made date.timsezone=''.Still no hope.Is there any way that this setting can be made to receive any time zones?
Thanks in advance
LG007

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron