WordPress.org

Ready to get started?Download WordPress

Forums

Easy Timer
[resolved] Can't count beyond 2037 (5 posts)

  1. tictactau
    Member
    Posted 3 years ago #

    Great plugin :)

    However strange it may appear, I'd like to countdown till 2067, but the plugin returns nothing beyond 2037. Why that?

    http://wordpress.org/extend/plugins/easy-timer/

  2. Kleor
    Member
    Plugin Author

    Posted 3 years ago #

    This is a restriction of the mktime function:

    "The number of the year, may be a two or four digit value,
    with values between 0-69 mapping to 2000-2069 and 70-100
    to 1970-2000. On systems where time_t is a 32bit signed
    integer, as most common today, the valid range for year is
    somewhere between 1901 and 2038."

    Sorry. Tell me if you have a solution.

  3. tictactau
    Member
    Posted 3 years ago #

    I found these links:
    ADOdb Date Time Library

    Working with Dates beyond 2038 in PHP4/5

    Unfortunately I'm not a programmer like you, but maybe I'm onthe right path, am I?

  4. Kleor
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, thanks! I just created a new version which supports
    dates before 1970 and after 2038:

    Download the latest version of Easy Timer

  5. tictactau
    Member
    Posted 3 years ago #

    Wow... Speedier than I could ever think :)
    And I'm so glad I've been of help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags