Home Forums Plugin Support WP Project Manager – Free Project activity local time stamp

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  hmmcreative 6 years, 1 month ago.

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

    eskamedia
    Participant
    Post count: 1

    Ok here's another one…

    I want this (located in includes/html.php):

    $date = strtotime( date( 'j F, Y', strtotime( $activity->comment_date ) ) );

    and this: $html .= sprintf( '<li><div class="cpm-activity-heads">%s</div><ul>', date( 'j F, Y', $key ) );

    To display localized time (it does that already on the rest of the plugin)http://codex.wordpress.org/Function_Reference/date_i18n

    I tried a few things but nothing satisfying at the moment.

    Could you point me to the right direction?

    #1223

    Tareq Hasan
    Keymaster
    Post count: 2831

    May be I forgot to add date_i18n function this case. In the second highlighted code snippet, replace date with date_i18n. That should work.

    #1275

    eskamedia
    Participant
    Post count: 1

    Sorry for the late reply, it worked thanks!

    #1660

    hmmcreative
    Participant
    Post count: 5

    Will this work for the milestone dates as well? I have a milestone that I'm making for April 4 to show that a meeting will take place that day, so I select the 4th on the calendar date for the milestone. Upon saving, the date changes to April 3rd which gets very confusing.

    #1664

    Tareq Hasan
    Keymaster
    Post count: 2831

    @hmmcreative, This topic isn't about the time malfunction. I still can't figure it out whats going wrong with the time.

    #1689

    hmmcreative
    Participant
    Post count: 5

    Thank you, sorry to be off topic. I will start a new thread as there are more issues with the dates that I'm having.

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

The topic ‘Project activity local time stamp’ is closed to new replies.