![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Basically, what is the process of going through saving to database, retriving from database and then display the date time to a user specifically to their time zone? Any suggestions is greatly appreciate it. I'm still trying to read up on UTC, a bit confused |
#3
| |||
| |||
|
|
Hello All, In our project management software, we just noticed an issue. If team members are across the world, then there is an issue with due dates being consistent. (even though we have not yet had such customers, but we want to address this) For example. A team is consists of 3 team members. John (U.S Eastern time), Jack (U.S West), Kate (China, Beijing time) Problem - Web server and database servers are located in Virgina U.S (East coast) - John on U.S east cost assigned a task to Kate and Jack, with a Due 12/13/2007 7:00pm (U.S eastern time) - To Kate in China, she should be seeing Due Date: 12/14/2007 8:00am (Beijing Time) (13 hours difference ahead ) - To Jack on U.S west coast, Due Date: 12/13/2007 4:00pm (3 hours behind) Our issue right now is that everyone see the due date as 12/13/2007 7:00pm, which Kate will finish early (that's good), but Jack will finish 3 hours late... to John at least. What is it that I have to do in 1) Our c# code 2) Database server 3) ASP.NET page which auto detects user's UICulture and CultureInfo Basically, what is the process of going through saving to database, retriving from database and then display the date time to a user specifically to their time zone? Any suggestions is greatly appreciate it. I'm still trying to read up on UTC, a bit confused Thanks |
#4
| |||
| |||
|
|
the typical is to store the utc date in the database. then when you display dates, you translate the date to the local to the local time zone. if you are just using dates, and not times, then you need to decide the timespan a univeral date represents. if you say 12/21/2007, its it begin/end of day a for each timezone (thus making the day really 48 hours long) or is there a fixed time (8:00pm pst). once you decide this you can convert the date. you next problem is getting the local timezone of the client. the browser doesn't send it. you have two option, use javascript to convert the dates to utc, or fill a hidden field with the current time and clac the timezone on the server. -- bruce (sqlwork.com) "Liming" wrote: Hello All, In our project management software, we just noticed an issue. If team members are across the world, then there is an issue with due dates being consistent. (even though we have not yet had such customers, but we want to address this) For example. A team is consists of 3 team members. John (U.S Eastern time), Jack (U.S West), Kate (China, Beijing time) Problem - Web server and database servers are located in Virgina U.S (East coast) - John on U.S east cost assigned a task to Kate and Jack, with a Due 12/13/2007 7:00pm (U.S eastern time) - To Kate in China, she should be seeing Due Date: 12/14/2007 8:00am (Beijing Time) (13 hours difference ahead ) - To Jack on U.S west coast, Due Date: 12/13/2007 4:00pm (3 hours behind) Our issue right now is that everyone see the due date as 12/13/2007 7:00pm, which Kate will finish early (that's good), but Jack will finish 3 hours late... to John at least. What is it that I have to do in 1) Our c# code 2) Database server 3) ASP.NET page which auto detects user's UICulture and CultureInfo Basically, what is the process of going through saving to database, retriving from database and then display the date time to a user specifically to their time zone? Any suggestions is greatly appreciate it. I'm still trying to read up on UTC, a bit confused Thanks |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |