• Resolved Richard

    (@rgenck)


    Hi, I installed Shiftee a few weeks ago, the pro version, and it’s going really well except for one big thing.

    The shift notes do not display the time they were submitted, only the date.

    I checked the code, I’ve been getting my hands dirty trying to learn how to customize plugins, and it looks like the function is calling both the date and the time, but only the date is being displayed.

    Here is a link with a screenshot of what I am seeing: https://prntscr.com/iqubo0

    Thank you for your help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Range

    (@range)

    We are looking in to this and will have an update soon.

    Thread Starter Richard

    (@rgenck)

    For anyone wanting to fix this issue, I got the following message:

    You could replace ‘date’ on line 451 with ‘both’ to display both the date in time. Line 451 would then look like this:

    $notes_display .= “

    • ” . $this->helper->display_datetime( $note[‘notedate’], ‘both’ ) . “: ” . sanitize_text_field( $note[‘notetext’] ) . “
    • “;

      The file you will need to edit is shiftee/shiftee-basic/public/class-shiftee-basic-public.php

      The only problem is that this solution does not display the correct time, it does not take into account UTC time zone settings that I set up in my WordPress General settings.

    • This reply was modified 6 years, 8 months ago by Richard.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shift note not displaying time’ is closed to new replies.