Date bug in Forum Post Listings

12 years 11 months ago #159465 by drdehart
Date bug in Forum Post Listings was created by drdehart
After migrating GroupJive from 2.1 to 2.2 dates on forum tab are been displayed as "12/31/1969 16:00:00" for every post. For researching purposes, I had compared the file cbgroupjiveforums.php on versions 2.1 and 2.2 and noticed that the method that adds mask to date had changed.
On last version. On a test environment I changed lines 277 and 278 to the same as version 2.1 and it worked fine.

//version 2.1
'<span title="' . htmlspecialchars( CBTxt::T( 'Posted' ) ) . '">' . cbFormatDate( date( 'Y-m-d, H:i:s', $r->time ) ) . '</span>'
( $r->modified_time ? '<br /><span title="' . htmlspecialchars( CBTxt::T( 'Modified' ) ) . '"><small>' . cbFormatDate( date( 'Y-m-d, H:i:s', $r->modified_time ) ) . '</small></span>' : null )

//version 2.2
'<span title="' . htmlspecialchars( CBTxt::T( 'Posted' ) ) . '">' . cbFormatDate( cbgjClass::dateDB( 'Y-m-d H:i:s', $r->time ) ) . '</span>'
( $r->modified_time ? '<br /><span title="' . htmlspecialchars( CBTxt::T( 'Modified' ) ) . '"><small>' . cbFormatDate( cbgjClass::dateDB( 'Y-m-d H:i:s', $r->modified_time ) ) . '</small></span>' : null )

See attached. Should we hack it back to the previous mask, or will that have other negative consequences?
Attachments:

Please Log in to join the conversation.

12 years 11 months ago #159467 by krileon
Replied by krileon on topic Re: Date bug in Forum Post Listings
This change is reverted in 2.3, you're welcome to perform the reversal your self. Your change is spot on correct.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: sohoprospecting

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.210 seconds

Facebook Twitter LinkedIn