Server Time Zone
Posted by: Ctor (---.static.twtelecom.net)
Date: December 21, 2010 07:58PM

How does one go about setting WAMP to use the server's time zone? Right now WAMP is being used to host a MediaWiki installation and the server time is set to UTC while the actual server itself is set to EST. I would like to set WAMP to use EST.
I have tried changing the time zone in Apache, MySQL (not sure I did this part right), and PHP, and none of these make a difference so I must be doing it wrong.

Could someone please help point me in the right direction? smiling smiley

Options: ReplyQuote
Re: Server Time Zone
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: December 21, 2010 08:05PM

wamp doesnt have a time. php does. mysql probably uses php's

how are you calling the time?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Server Time Zone
Posted by: Ctor (---.static.twtelecom.net)
Date: December 21, 2010 09:17PM

I'm not sure. It is being used by MediaWiki so like you say it is coming from either php or mysql, but I'm not sure how to tell which it is using.

Options: ReplyQuote
Re: Server Time Zone
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: December 21, 2010 09:25PM

see this >> [www.mediawiki.org]

seems like a bug in mediawiki

Quote

Server time != mediaWiki-time
Hi there, my server seems to be in the correct time, correct time zone and tht php.ini is adjusted as well to my timezone. The mediaWiki on the server however displays in the preferences, that the server is minus two hours of what it shows. How can this be? I am in Europe/Berlin timezone. --Thekryz 16:50, 24 May 2008 (UTC)

It seems that the server time that the MediaWiki displays, always is the UTC time. -- MÃ¥rten 193.200.150.167 18:53, 26 October 2008 (UTC)

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Server Time Zone
Posted by: chintan.patel.47 (---.17.213.69.static.vsnl.net.in)
Date: January 10, 2011 02:29PM

Your problem solution is :--

step1: go in to the php.ini file

ste[2:- date.timezone and set your time zone what you want

like my country in india

i set date.timezone = "Asia/Calcutta"

Options: ReplyQuote
Re: Server Time Zone
Posted by: yfastud (Moderator)
Date: January 10, 2011 06:25PM

Through wamp tray icon, open file php.ini to edit this line to show EST
date.timezone = UTC-05:00
Make sure to restart wamp to take effect

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 1 time(s). Last edit at 01/10/2011 06:28PM by yfastud.

Options: ReplyQuote
Re: Server Time Zone
Posted by: Ctor (---.static.twtelecom.net)
Date: January 12, 2011 06:20PM

yfastud Wrote:
-------------------------------------------------------
> Through wamp tray icon, open file php.ini to edit
> this line to show EST
> date.timezone = UTC-05:00
> Make sure to restart wamp to take effect


Within my php.ini I show:

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; [php.net]
date.timezone = UTC-05:00

then I save and restart all wamp services..

However, when I go to my preferences in the wiki that I use it still does not show the correct server time. It still has the UTC time.

Is there any way to double check the time using phpMyAdmin?

Options: ReplyQuote


Sorry, only registered users may post in this forum.