Skip to Content Skip to Menu

CB Activity Date displaying incorrectly on profile tab.

  • jmaridon
  • jmaridon
  • OFFLINE
  • Posts: 49
  • Thanks: 8
  • Karma: 2
10 years 9 months ago #240508 by jmaridon
I am using Joomla 2.5.11, CB 1.9.1, CB Activity 2.4.1.

I had a user log in on Tuesday, February 4, 2014 at 4:54 p.m. On the user's profile Activity Tab, the log in date and time is displayed as: Wednesday, April 2, 2014 at 4:54pm.

Anytime someone logs in during the first 12 days of the month, the month and day are flip-flopped on the profile tab. After the 12th of the month, the date displayed is the current date.

The dates and times are displayed correctly, as numbers, in the back end activity log.

On the back end, in the Configuration, Datetimes tab, Timeago is Disabled and Dynamic Timeago is enabled. Format is: l, F j, Y \a\t g:ia

I don't understand why the day is displayed as the month and the month as the day. Any help in fixing this would be appreciated.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago - 10 years 8 months ago #240552 by krileon
Enable timeago and see if issue persists. Static timeago and static date display is going away in next release in favor of always using dynamic timeago. Check the date stored in the _comprofiler_plugin_activity and ensure the date is stored to the database correctly. I am unable to confirm your issue though. It should never be displaying raw date anyway as it should be today, 1 day ago, 10 days ago, etc..


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.
Last edit: 10 years 8 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • jmaridon
  • jmaridon
  • OFFLINE
  • Posts: 49
  • Thanks: 8
  • Karma: 2
10 years 8 months ago #240572 by jmaridon
Thank you for the reply.

If I understand correctly, when you tested this issue and disabled Timeago the date displayed correctly?

I would rather not use Timeago because the raw date and time should provide detailed activity information very quickly without having to log into the back end and go through the activity log. If I post some information into a user's profile, I want to be sure the user logged in after I posted the information to be sure that the user actually saw what I posted. For me, the value of the plugin is significantly diminished without the ability to display the raw date. Waiting for the next version that will eliminate the ability to display the date really doesn't fix the problem.

When I enabled Timeago, static and dynamic display correctly. The date is also stored in the database correctly and is displayed as numbers correctly in the activity log in the back end.

If the date is stored correctly in the database, something in the code has to be flipping the month and the day when Timeago is disabled.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #240589 by krileon
The date output is handled by PHP date function, it's probably having trouble parsing the supplied format. Change the date format to Y-m-d H:i:s and see if issue persists. Please be aware though static date usage is going away with next release. Timeago still displays the raw date as well, just mouseover the timeago.


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.

Please Log in or Create an account to join the conversation.

  • jmaridon
  • jmaridon
  • OFFLINE
  • Posts: 49
  • Thanks: 8
  • Karma: 2
10 years 8 months ago #240603 by jmaridon
I tried several different date formats, but it didn't make a difference.

Thank you for pointing out the mouseover feature with Timeago, that helps. At least the date displays correctly with the mouseover, but the time seems to be in GMT, which I think matches the activity log in the back end.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #240641 by krileon
What PHP version are you on? Check within System Information if unsure. I was not able to confirm your issue. Please see the below screenshot of it working fine.



Please note I am on CB 2.0 and there is a high possibility the issue was with CBs date formatting function, which I have rewritten for CB 2.0.


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.
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum