|
So, I'm setting a cookie that should expire. However, I want this to work around the world. So I need to adjust my expiry date for the user's timezone.
So, I need to find out the user's timezone, server-side.
Is there a way to do this in the BCL? As in...
Started by Peter Mounce on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You could track their IP address, and then tried to attach a location to it, but that tricky and error-prone (Some locators put all AOL uses in Virginia)
I'd say that it would be best to do ... .
There's no really good way to determine a clients time-zone .
|
|
Hello everyone. I am able to display my tweets in my website using the JavaScript below.
window.onload = function() { var siteName = 'xyz'; $.getJSON( 'http://search.twitter.com/search.json?callback=?&rpp=20&q=from:' + siteName, function(data) { $.each...
Started by kobra on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Changetimezone(tweets[num].created_at,12); +1200hrs is New Zealand's timezone and time of tweets in my timezone....
The following js code snippet was found from Twitter's web relative timezone.
You can change the timezone.
|
|
I have an ASP.NET application that is hosted in timezone A and is being used by users in timezone B. Is there any way to set the whole web application's timezone to B even though the hosting environment is in A? I've already set the globalization tag ...
Started by Michal Rogozinski on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So I first got the server's UTC time and then added the timezone: Store the offset for timezone B from Utc and use that combination though this may run into issues around daylight savings....
timezone in a website I was making.
|
Ask your Facebook Friends
|
Hi,
I know this one is the weirdest of all weird questions I have asked till date. But I have a reason.
The problem is that I have a no of websites hosted in diff servers (I dont own these servers) and every website has some pages where I have to enter...
Started by MSIL on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
ADDED: Keep in ....
Simple and effective.
<%= DateTime.Now.ToString() %>
And you will access it like: http://site-no-x.com/timecheck
Something like this .
You can put on each of those servers your own "system" page that will display the current time .
|
|
I have a Unix timestamp that comes from a database that is (unfortunately) in a timezone with a certain of either +3600 or +7200, depending on if it's DST or not. This has never been a problem before, but our website is currently moving to a more international...
Started by Aistina on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Application of timezone offset and dst is handled by the libraries that convert the unix timestamp, applies timezone information either from environment or the /etc/localtime file, and spits out.
|
|
Is there a way to determine the timezone for a user agent without javasript?
normally, i would execute this snippet of javascript:
<script type="text/javascript" language="JavaScript"> var offset = new Date(); document.write('<input type="hidden...
Started by MikeJ on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I've seen a website where instead of asking what timezone the....
If going down "Use the request Date: header" but that's a response header only it seems .
I'd imagine this could be problematic, though.
What timezone they could be in.
|
|
FARR TimeZone
This plugin will display the current time of the major cities from different time zones and up to 50 of your personal favourites.
Thank you to everyone who didn't make fun of the name! (I was a little concerned, wasn't sure if it shortened...
Started by czb on
, 25 posts
by 7 people.
Answer Snippets (Read the full thread at donationcoder):
Change?
dont you need to just grab the data to get the timezone offsets and thereafter can just use, 07:00:59 AM dont you need to just grab the data to get the timezone offsets and thereafter can just be defined to be displayed with the....
|
|
On Fri, 20 Mar 2009 14:36:58 -0700 (PDT), axrock <chris.sefton@gmail.com
Hi,
Ok, firstly I know nothing about Java. But hoping somebody here has
got the skills to give me some pointers to fix a problem.
1. I use an application that is bundled ...
Started by axrock on
, 9 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
Think that will actually do?
Judging from the documentation on Sun's website, this should.
|
|
I am trying to determine, how I should implement local time in a web-app. All users are logged in, there are no anonymous users. They will need to see all time-values in their local time.
Is this how it should be done?
All DateTime values are saved as...
Started by Kjensen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In general, but at least TimeZoneInfo gives a lot more support than the old TimeZone type.
|
|
On my website, users can set preferences for their current timezone. I have a bunch of datetimes in my database, but I want to show each time appropriately, given A) what timezone they are in, and B) whether or not Daylight Savings is in effect.
What ...
Started by Yongho on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You....
I've seen other systems that store everything in GMT using unix timestamps .
Date/times are stored in our local timezone (PST) and converted appropriately.
We use a date formatting method/function that adjusts for the user's timezone.
|