Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply date format based on ISO 8601


  • Loc Pham
    Participant

    @phamdacloc

    Hello,

    Is there a way to specify the date format use in bbPress? In various places of bbPress, the date format do complies to IOS 8601 standard and prints the ‘T’ element to specify the beginning of ‘time’ element like: 1994-11-05T08:15:30-05:00

    Conversely, if I print bbp_get_reply($id) the format DOESN’T conform to ISO 8601 and prints the following: 1994-11-05 08:15:30-05:00. Notice that ‘T’ is missing. Its inconsistencies breaks my code in various places and wonder if there’s a way to specify the output?

    Thanks
    Loc

Viewing 2 replies - 1 through 2 (of 2 total)

  • Loc Pham
    Participant

    @phamdacloc

    I’m not allow to change bbp_get_reply() but I was able to work around my problem by calling get_post_time('c', false, $replyID, false) where ‘c’ is iso 8601 format.


    Robkk
    Moderator

    @robkk

    Glad you resolved your issue 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar