Top "Timezone" questions

A time zone is a region on Earth that has a uniform, legally mandated standard time.

Symfony2 and date_default_timezone_get() - It is not safe to rely on the system's timezone settings

I have a Symfony2 project. I updated my php to 5.5.7 today and since then, I am getting the Warning: date_…

php symfony timezone
Mapping US zip code to time zone

When users register with our app, we are able to infer their zip code when we validate them against a …

timezone zipcode
Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two …

php timezone utc
How to change default timezone for Active Record in Rails?

In my application.rb I came across the following comment # Set Time.zone default to the specified zone and make …

ruby-on-rails ruby timezone rails-activerecord
Can MySQL convert a stored UTC time to local timezone?

Can MySQL convert a stored UTC time to local time-zoned time directly in a normal select statement? Let's say you …

mysql sql timezone convert-tz
How to convert Moment.js date to users local timezone?

I use the Moment.js and Moment-Timezone frameworks, and have a Moment.js date object which is explicitly in UTC …

javascript date timezone momentjs
convert epoch time to date

I've tried a million different ways of doing this, but with no avail. Any help would be much appreciated. long …

java datetime timezone datetime-format
PHP Configuration: It is not safe to rely on the system's timezone settings

Here a weird one. I just upgrade to php 5.3.0 and since the upgrade I'm getting the following warning: Warning: getdate() […

php timezone
How can I get the timezone name in JavaScript?

I know how to get the timezone offset, but what I need is the ability to detect something like "America/…

javascript timezone
Python: Figure out local timezone

I want to compare UTC timestamps from a log file with local timestamps. When creating the local datetime object, I …

python datetime time timezone utc