SitePoint Sponsor |
|
User Tag List
Results 26 to 29 of 29
-
Aug 6, 2002, 14:09 #26
- Join Date
- Apr 2002
- Posts
- 2,322
- Mentioned
- 3 Post(s)
- Tagged
- 0 Thread(s)
i see
but then i don't see, because that problem that you've pointed out -
The following browsers have trouble with this method:
Netscape 2, Netscape 3 and 4 on Mac, Explorer 3 on Windows and Konqueror.
The Date.getTimezoneOffset() method gives the difference between the local timezone on the computer and GMT in minutes
all the results (so far) have been minutes.
your result was 240. - minutes. so that's saying gmt is 4 hours infront of you
beetle's was 300 - that's an hour more away from gmt - 1 hour behind you.
all the results have been minutes. what other type of result is there?
the solution i've got in mind (haven't actually done it yet but i'm pretty sure it'll work) is a process that i can put all results through, blindly. blindly as in not testing for which browser. a process that i can apply to all the results regardless of browser. and arrive at hour offset in the same format
-
Aug 6, 2002, 14:56 #27
- Join Date
- Jan 2002
- Location
- London
- Posts
- 3,509
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, it was -60!
May I suggest that you do all the browser/os detection & compensation in JavaScript on the client rather than the server, so that just have to receive the cookie and use it, rather than messing about with it. Not much difference I admit, but it's somehow neater (as well as being more efficient to make the client do some work).MarcusJT
- former ASP web developer / former SPF "ASP Guru"
- *very* old blog with some useful ASP code
- Please think, Google, and search these forums before posting!
-
Aug 6, 2002, 16:20 #28
- Join Date
- Apr 2002
- Posts
- 2,322
- Mentioned
- 3 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by M@rco
Yes, it was -60!
May I suggest that you do all the browser/os detection & compensation in JavaScriptalso i need to use this result for something i've already done serverside
also i don't actually need to do any browser/os detection - that's what i've realised - all the results can be treated the same way...
unless someone comes up with an offset result that's in hours rather than minutes or some other format - but it looks like they're all in mins
-
Aug 6, 2002, 16:35 #29
- Join Date
- Jan 2002
- Location
- London
- Posts
- 3,509
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, cool.
MarcusJT
- former ASP web developer / former SPF "ASP Guru"
- *very* old blog with some useful ASP code
- Please think, Google, and search these forums before posting!
Bookmarks