?
Solved

How can I force PHP to use the Local Time of Ubuntu server, and Not UTC?

Posted on 2011-09-05
2
Medium Priority
?
427 Views
Last Modified: 2012-05-12
How can I force PHP to use the Local Time of Ubuntu server, and Not UTC?
0
Comment
Question by:smetterd
2 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 1000 total points
ID: 36484632
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1000 total points
ID: 36485395
Please see this article about handling DATETIME:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html

In particular, you might find Practical Application Number 8 to be responsive to your question.

And you can use this built-in PHP function
http://php.net/manual/en/function.date-default-timezone-set.php

HTH, ~Ray
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question