SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    SitePoint Wizard
    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

  2. #27
    The doctor is in... silver trophy MarcusJT's Avatar
    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!

  3. #28
    SitePoint Wizard
    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 JavaScript
    i'm crap in javascript! also 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


  4. #29
    The doctor is in... silver trophy MarcusJT's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •