Determining a web user's time zone
Is there a standard way for a Web Server to determine what time zone offset a user is in?
Perhaps from an
HTTP header? Or part of the user-agent description?
I am trying to parse a datetime with Time class in Ruby 2.0. I can't figure out how to parse date and get it in a specified timezone. I have used Time.zone.parse to parse a date where I first call Tim
I use unix time extensively throughout my scripts and usually I set my time zone as follows: date_default_timezone_set('Europe/London'); This had been working fine until the clocks went back last wee
The documentation says: http://docs.djangoproject.com/en/dev/ref/settings/#time-zone Note that this is the time zone to which Django will convert all dates/times -- not necessarily the timezone of th
I am using the gmdate PHP function to insert the current date to the database but it shows GMT time , can I change it to my time zone +3 ? this is the code $sql = INSERT INTO Students VALUES ('',' .
Is there a way to have multiple websites running within IIS that have different time zone information? For example: The local Windows Server is running in CST. I would like one website that runs in CS
In Rails 3.0.10 I'm using Time.zone to change how a user sees times of courses posted around the US. However changing the time zone doesn't seem to behave the way I would expect Time.zone = TZInfo::T
My code currently uses java dates. Mysql has column datetime. I want to allow users to set their timezones, and then in my application I will convert the dates to reflect their timezones. I am using S
I have the following problem in Ax 2009 with time zones: I have a site in Europe (Spain), but with users operating in Mexico. The time zone configured for users is that of Mexico City, users connect v
Exchange and Time Zones are going to be the death of me. My Exchange Server is located in EST (UTC -5). Version of Exchange is 2007 SP1. User is located in Paris France (UTC +2). If I try to create an
Here is my console: irb(main):048:0> Time.now => 2011-04-13 00:51:50 +0200 <c => (@stats == '-' ? 0 : @stats), :earn => @stats) => #<Reklamer id: 75, virksomhed: Orville
I have a legacy application that uses the windows time zone information for calculating dates. For example, 35 = East Coast, 20 = central, 15=mountain. Here is the current function. It takes a date wi
How do you set date, time and the time zone setting of the remote computer using C#? Basically, I want to update the time on selected machines in the network. Creating time server is not an option as
Is there a way to make the time (local) being used by the web based lotus notes application. I noticed that in notes client that basically it always uses the right time of the local machine so it does
I am new to database development and am currently working in MySQL. I have a column that contains all the time zones for USA. I want to be able to get the current time (only time, no date) as of right
How do you set the time zone in Crashlytics? It's showing in UTC now, and I don't see the setting that allows you to change it.
How can I set the time zone of H2 database? I'm using Hibernate for creating the database.
Is there a way that I can use a Time Zone abbreviation (PST, EDT, GMT, etc) and turn it into the current time with C# on WP7? I would assume I could use something like TimeZoneInfo to find the offset,
Do you know a web service that's able let's say get a full list of cities in the world with names, short names like PAR for Paris and time zones? Or at least query by city name: Paris -> timezone=+
I have something like this I/global ( 3622): Loaded time zone names for en in 355ms. I/global ( 3622): Loaded time zone names for en in 307ms. I/global ( 3622): Loaded time zone names for en in 309ms.
Are timestamp values stored differently in PostgreSQL when the data type is WITH TIME ZONE versus WITHOUT TIME ZONE? Can the differences be illustrated with simple test cases?
how do i get the srver time zone exept of the date(e) function i need somthing that will check the os time zone and not depends on the php ini and stuff like that... thanks!!! edit 1 i need this bec
How can I separate time from time zone and put time in format yyyy-m hh:mm:ss. Lookin for the column “Time”, create other two columns: “Time*” and “Time_Zone” . I adapted this code, but some error o
i am using php with mssql, on windows azure cloud storage , when i insert datetime with code then it insert '2013-05-30 11:31:47.000' (which is correct time with indian time zone) but when i use get
The simple thing I want is to store a DateTime in UTC in the database and retrieve it in UTC again, but rails seems to assume I stored the DateTime in my local time zone and adds the 8 hours differenc
How can a method take the current Time.zone and put it into a format that is usable by ActiveSupport::TimeZone[some_zone].parse()? It seems very strange that Time.zone.to_s returns a string that can n
When I call NSTimeZone’s abbreviation method it returns GMT-07:00. Then, when I use this value to lookup the time zone name or (time zone identifier) it returns nil. I need to retrieve the official t
i have a bunch of 1 minute data in an xts object with GMT time zone. i call period.apply (obj, endpoints(obj, hours)) and for some reason the time zone of my new object changes to EST/EDT, however
This question already has an answer here: Timezone conversion 6 answers I have a Calendar Object, which is in UTC time zone. I want to convert the date and time in that Calendar Object to PST k
I am using below expression for converting DB value to user preferred time zone.But it is not working.It seems it does not accept aggregate function in first parameter.But I think I should use 'First(
how do i get the srver time zone exept of the date(e) function i need somthing that will check the os time zone and not depends on the php ini and stuff like that... i need this becouse i need to kn
This question already has an answer here: MySQL timezone change? 5 answers php server time from echo date_default_timezone_get ( void ); function is this Asia/Karachi And mysql time zone from S
I have an application with a server time zone being BST (British Summer Time). When Date is created, the time zone is respected, as the time zone appears as BST (or +01:00) when the Date object is con
The question is short: if I already have data in a column type timestamp without time zone, if I set the type to timestamp with time zone, what does postgresql do with this data?
I can't recall what the process is called but I need a means of creating like a hotspot zone on a web page, so that, when the user hovers there mouse pointer over this zone, the cursor changes to a po
I'm trying to migrate a WPF app to SilverLight 4. The WPF app use TimeZoneInfo.FindSystemTimeZoneById() and TimeZoneInfo.ConvertTimeFromUtc() to convert DateTime of speicific time zone into the DateTi
I have a web service which will be called from about...let us say 100000 users in the same time (within 3 hours). The services reads and updates the SQL database using Entity Framework 4.1. Here is th
I want to display the Timezone abbreviation. But my Ruby keeps giving me the fullform. irb(main):001:0> Time.now => 2014-02-28 15:11:21 +0530 irb(main):002:0> Time.now.zone => India Stan
I have a MySQL query that saves a comment in the database and save also the timestamp I want to save the timestamp in another time zone settings can i do it through the following query: INSERT INTO ta
If the user is in Eastern time, I don't want to display EST or EDT but if they are not, I do want to display it. Is there an easy way to compare TimeZone rules in iOS? [NSTimeZone localTimeZone] r
So in my rails console. This is what I get if I check Time.now: 1.9.2p290 :014 > Time.now => 2012-02-06 01:00:43 -0500 1.9.2p290 :015 > Time.now.zone => EST In my application.rb I have
In my application I have: config.time_zone = 'Warsaw' A strange issue I have, is that it seems like Rails are having problems with comparision of datetime fields. If I change the datetime 1 hour back
I have a method in my class that defines what today is. class Practice attr_accessible :date def self.today where(:date => Date.today) end end I got my Time.zone to be the same as the user's usin
This is my scenario: I want to parse time stamps that the user gives me. If the time stamp doesn't have time zone information, I want to assume the time stamp is in the user's timezone, if the timesta
I would like to know if it's possible to get the time zone abbreviation (example: EST, CST, PST) by simply using POSIX ? I can get the full time zone name (example: Pacific Standard Time) by using POS
I would like to download daily data from yahoo for the S&P 500, the DJIA, and 30-year T-Bonds, map the data to the proper time zone, and merge them with my own data. I have several questions. My
Any possibility to changes user wise time zone in Linux.
I'm looking into ways of changing the time zone of my databases as my userbase is UK based, but my domain is US based. I've researched a number of options including php, PEAR time class, and MySQL fun
I am having trouble converting a table column TYPE from time without time zone to integer. Is that possible? Where integer will be equal to seconds. I am using ALTER table exampleTable ALTER COLUMN ti
I'm having some trouble with time with time zone equalities in Postgres. timestamp with time zone equality works how I would expect it to, where if the times are the same after normalizing the timezon