Forum Moderators: open

Message Too Old, No Replies

Want to have different sites show different time for various time zone

LCID not working

         

ron_ron

2:11 pm on Nov 21, 2007 (gmt 0)

10+ Year Member



I am using a win 2003 server standard edition. IIS 6. I have my server set to one time zone for most of my sites but want to set another site to a different time zone. My scripts are in ASP and I am using this:

Response.LCID = 1033
Session.LCID = 1033

but it does not work and I am wondering if someone can suggest why.

mrMister

4:27 pm on Nov 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think locales can be used for converting times. they're more used for formatting how things like dates,numbers and currencies appear.

For example, the 9th October 2007 is represented in different ways in different countries....

US: 10/09/2007
UK: 09/10/2007

The same with currencies. Some countries put the currency symbol before the number, others after. eg..

US: $300
DK: 300Kr

And with numbers. Different countries format numbers differently...

US: 1,000,000
FR: 1.000.000

ron_ron

3:50 am on Nov 28, 2007 (gmt 0)

10+ Year Member



Ah, I see, but can you tell me if there is anything wrong with my code?

mrMister

9:41 am on Nov 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don't need to set it on both the Session and Response objects. Just set it for the Response.

1033 is the Locale ID for the USA. If that's your intention then the code looks fine to me.

[edited by: mrMister at 9:41 am (utc) on Nov. 28, 2007]