Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 31)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] Time in Profile Book

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 8 months ago - 9 years 8 months ago #261915 by catalincb
[SOLVED] Time in Profile Book was created by catalincb
I have a problem with the comments posted on Profile book. there is a difference about 2hours.
The strange thing this is happening only there.
For example if i create a user in cb backend or in frontend... i have the correct time when user was created.

And how can i set a characters limit in the comments posted by visitors/users?
Last edit: 9 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
9 years 8 months ago - 9 years 8 months ago #261975 by krileon
Replied by krileon on topic Time in Profile Book
It's using PHP date function instead of our UTC date functions. Joomla changes the PHP timezone so it gets offset before storing to the database. Then on display it gets offset again. There are plans to upgrade the plugin further that'll fix this, but not sure when at this time as am currently focused on CB Activity.

And how can i set a characters limit in the comments posted by visitors/users?

There's no feature for that.


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

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

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 8 months ago #261980 by catalincb
Replied by catalincb on topic Time in Profile Book
Ok. thanks. i thought that i was doing something wrong because even in php.ini i have the same time as in joomla.
Good to mention about cb activity... looks good

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
9 years 8 months ago #261994 by krileon
Replied by krileon on topic Time in Profile Book
You can try the below quickfix to force the datetime to store as UTC, but this won't fixing existing entries; you'd have to fix those manually in the database.

IN: components/com_comprofiler/plugin/user/plug_cbprofilebook/cb.profilebook.php
ON: Line 278
FROM:
Code:
$entry->date = date( 'Y-m-d H:i:s', $_CB_framework->now() );
TO:
Code:
$entry->date = $_CB_framework->getUTCDate();


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.

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 8 months ago #261997 by catalincb
Replied by catalincb on topic Time in Profile Book
Perfect. For the moment i am on localhost so nothing to manually edit!
I appreciate!

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

Moderators: beatnantkrileon
Powered by Kunena Forum