Results 1 to 4 of 4

Thread: countup script

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post countup script

    I was testing out one of the scripts called Dynamic Countup. On the time it seems that the ime is using central time. Is there a way I can change it to eastern time?

    I have typed in the date and leave the time at 12:00 midnight. The all the displays are corrected but only the hour is one hour behind. How do you change the time to move ahead by one hour?

    //SYNTAX: myvariable=new dcountup(past_date_and_time_string, "baseunit")
    var princeswedding=new dcountup("November 19, 2007 00:00:00", "days")


  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Not knowing exactly which script you mean (please post the link to it in the Dynamic Drive Scripts Library). I can only guess that this is the result of DST interfering in some way. That can usually be remedied by creating another Date Object, and/or using an existing one, setting its date and time to the desired target before extracting its values. But I cannot say for sure without looking at the script, it might even be something else entirely. Are you sure that the clock on your computer is set correctly?

    A link to your page would probably help also.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am so sorry John. This is my first time using this forum and kinda stumpled around a little bit. But here is the link that I was looking at http://www.dynamicdrive.com/dynamici...countingup.htm .

    I did check the clock on my pc and the clock is correct. I also did change the timezone to central time and the time in the script changed one hour behind from the central time. I'm baffled. -elhaca.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Nothing to be sorry about really, just trying to get you with the program. I certainly understand being unfamiliar with the forum as a first time user.

    I setup this script and it is a matter dealing with DST. However the script appears to 'get it right'. Say you are counting up from an event that occurred during standard time. If the current time is DST, one actual hour less has transpired since the event than one would think merely by looking at the time on the clock. That's because we set the clock ahead one hour for DST, but no hour has passed when we do that. Once clock time returns to standard time, it will all 'add up', but that doesn't change the fact that, even under DST, the actual time elapsed since the event is correct.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •