M
MarcG
I have an aspnet/sql2005 app that supports a set of local users in a
manufacturing environment. I (thoughtlessly) built it using SQL's GetDate()
and Framework's DateTime.Now function/property.
Everything was fine until the client decided to use the app for its plant in
the far east. The good news is that the far east system will not share a
database with the local one. The bad news is that the far east app will run
on the same IIS and SQL server as the local app (i.e., here in north america).
So what I now have is two instances of the app and database running in
separate app pools.
Obviously I haven't worked with internationalization apps before and said
"Oh, yeah, hadn't thought of that..." when the client called and asked why
the far east userswere saying that timestamps were off by 13 hours. I'm going
to have to fix this, but fortunately they haven't asked for output in
Cantonese.
So, what is the "right" way to deal with the general problem an app faces
when wanting to present time information to remote users according to their
local time zone?
If it helps, I think that I should have timestamps in the database reflect
the user's local time since in THIS case, the local and far east plants
represent different business units and the data will not be combined for
reporting purposes (i.e., I don't have the general problem of users from
different time zones sharing data and it is the time zone of the business
unit I'm trying to deal with).
It would be great, but I think impossible, to have a time zone associted
with the app pool and the database instance.
Thx
Marc
manufacturing environment. I (thoughtlessly) built it using SQL's GetDate()
and Framework's DateTime.Now function/property.
Everything was fine until the client decided to use the app for its plant in
the far east. The good news is that the far east system will not share a
database with the local one. The bad news is that the far east app will run
on the same IIS and SQL server as the local app (i.e., here in north america).
So what I now have is two instances of the app and database running in
separate app pools.
Obviously I haven't worked with internationalization apps before and said
"Oh, yeah, hadn't thought of that..." when the client called and asked why
the far east userswere saying that timestamps were off by 13 hours. I'm going
to have to fix this, but fortunately they haven't asked for output in
Cantonese.
So, what is the "right" way to deal with the general problem an app faces
when wanting to present time information to remote users according to their
local time zone?
If it helps, I think that I should have timestamps in the database reflect
the user's local time since in THIS case, the local and far east plants
represent different business units and the data will not be combined for
reporting purposes (i.e., I don't have the general problem of users from
different time zones sharing data and it is the time zone of the business
unit I'm trying to deal with).
It would be great, but I think impossible, to have a time zone associted
with the app pool and the database instance.
Thx
Marc