Home Forums Plugin Support WP Project Manager – Free Milestone and Task due-dates behave strangely

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39060

    Seth van Esschoten
    Member
    Post count: 5

    Behavior: After being entered, due dates are displaying incorrectly

    Example:

    Today's date is March 13th, 2015, roughly 8am local.
    Create milestone named “SuperUniqueMilestone”
    Set due date to March 14th, 2014
    Add milestone
    Upon loading the Milestone page I am told my milestone named, “SuperUniqueMilestone” is due in 2 hours.

    If I choose a date in the past, I am told it was due a day earlier.

    If I choose the 15th, I am told the 14th.

    Identical behavior with tasks

    Wordpress reports back correct time.

    #39125

    Nayem
    Moderator
    Post count: 6480

    Hello Esschoten,

    Can you please provide a screenshot of that milestone?. It will help me to find out the problem.

    Thank you ๐Ÿ™‚

    #39618

    Seth van Esschoten
    Member
    Post count: 5

    I have created an imgur album:

    http://imgur.com/a/T6RvI

    #39665

    Nayem
    Moderator
    Post count: 6480

    Hello Seth,

    I have to discuss with our developer about this. Please allow me some time. I will back to you after the discussion.

    Thank you ๐Ÿ™‚

    #39739

    Nayem
    Moderator
    Post count: 6480

    Please provide your login details by using this form – http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #39747

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please replace the function which you have mentioned in the screenshot-

    function cpm_date2mysql( $date, $gmt = 0 ) {
        $time = strtotime( $date );
        return ( $gmt ) ? gmdate( 'Y-m-d H:i:s', $time ) : get_gmt_from_date( date( 'Y-m-d H:i:s', strtotime( $date ) ) );
        
    }

    Thank you ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Milestone and Task due-dates behave strangely’ is closed to new replies.