International datetime comparisons in real-time web apps

Tech-Archive recommends: Fix windows errors by optimizing your registry




I'm creating a sports betting site and have a real trouble dealing with dates
and times depending on each country's hour difference. I've read much about
UTC and internationalization (cultures, SQL server CONVERT function, how
ASP.NET deals with datetime formats etc) but I can't figure out how to start
the puzzle.

So, how does a sports betting site deal with dates? In order to place a bet
without worrying about each country's time difference, players from all
around the world, should see the starting date of an event in their browsers,
displayed in their local time:

E.g. for a basketball event in Italy (where let's say the DB server
resides), that starts on May 14, 2009 at 18:30 (Italian local time), an
Italian player would see the date as '14.5.2009 18:30' (as is), a player in
New York should see the date like '5/14/2009 13:30', and a player in Athens
would see it like '14/5/2009 '19:30',
because of the -5 and +1 hour difference respectively).

Players can place a bet on the event's outcome, up to one minute before it
starts. After it that, it dissapears from their pages (auto refresh). Don't
forget that the server resides in Italy, and it checks for events to
deactivate, in Italian local time. So, for the NY player, it will disappear
on 5/14/2009 13:29 (NY local time) and for the player in Athens it will
dissapear on 14/5/2009 19:30 (Athens local time).

QUESTIONS:
1. Microsoft suggests dealing with apps that run internationally, to store
dates in UTC format. But this means, the time part of the Italian local time,
will now change. In my scenario, should the event's date be stored in Italian
local time or UTC time?

2. Is there a format I can set on the gridview's date column, so it is
displayed in local time? Or must I display it using code? I read all the
datetime formatings in MS help but I can't make the correct pick.

3. Should the date comparisons be done with dates converted to UTC or in
localtime?

4. What if the DB server is moved to another country with another timezone,
but the data entry is done from Italy, using the Italian local time ? How
should I compare the starting date with the DB server's date to deactivate
the even?

Too much, I know...
What I really need is guidance, from anybody who has dealt with real time
international web apps.
TIA
.



Relevant Pages

  • UTC Wrapping Up Probe Of Alleged Gang Rape By Football Players
    ... UTC Wrapping Up Probe Of Alleged Gang Rape By Football Players ... UTC Police are wrapping up a probe of seven UTC football players, ... He said the result would then be turned over to authorities. ...
    (alt.true-crime)
  • Re: What time is it? Issues with Local time, system time, DST
    ... Apparently CE stores time in local time, ... be for local time, not UTC. ... RTC, so that when processor is asleep or off, onboard batteries ... you can't know the UTC unless you also have, in some non-volatile ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Seven Mocs Players Suspended after Alleged Gang Rape
    ... UTC Football Players Suspended After Gang Rape Allegation ... Attorney Summers Says Evidence Indicates Consensual, ... The woman said in a report filed with UTC Police that she was driven ...
    (alt.true-crime)
  • Re: UTC Wrapping Up Probe Of Alleged Gang Rape By Football Players
    ... >UTC Wrapping Up Probe Of Alleged Gang Rape By Football Players ... >UTC Police are wrapping up a probe of seven UTC football players, ... >He said the result would then be turned over to authorities. ...
    (alt.true-crime)
  • RE: Best practice for TOD clock
    ... returns the UTC time. ... local applications that log with local time) for one hour in the fall. ... duplicate timestamps if the timestamps are using UTC time. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)