Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] timestamp format

5 Posts
2 Users
1 Reactions
2,725 Views
(@benjamin)
Active Member
Joined: 8 years ago
Posts: 11
Topic starter  

Hi,

In the comments on my site, the timestamps for comments from today are being abbreviated as "Today" instead of showing the real date.  (similar for "Yesterday")

Is there a way to get it to show the real date?  "Today" is confusing for my users as many are in different timezones.  I have the "Use WordPress Date/Time format" setting turned on in wpDiscuz, but nowhere in the WordPress date format settings do I see a reference to this kind of abbreviation.  Do you know where the abbreviation is happening?

Thanks,


   
Quote
(@benjamin)
Active Member
Joined: 8 years ago
Posts: 11
Topic starter  

Ok actually it was only doing it for Today and not for Yesterday.  I hacked the isPostedToday function in class.WpdiscuzHelper.php to fix this.  I think this abbreviation functionality is unnecessary.

Regards,


   
ReplyQuote
(@benjamin)
Active Member
Joined: 8 years ago
Posts: 11
Topic starter  

Hi,
This issue was marked as solved, but I would still appreciate a proper fix for it because I don't want to have to re-hack the code every time there is an update.  There was an update this week so already I need to reapply the hack.  I think that wpDiscuz is trying to be too smart by abbreviating the date.  It could be an option but I don't think it should be the default.  In fact, the option is "Use WordPress Date/Time format" but wpDiscuz is not actually using the WordPress Date/Time format...
Thanks,


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4233
 

Hi triode,

We've just updated wpDiscuz core without new version release (a few hours ago). Please deactivate it, delete then search and install it again. The time format should work for today.


   
ReplyQuote
(@benjamin)
Active Member
Joined: 8 years ago
Posts: 11
Topic starter  

Hi,
Sorry I missed your comment on August 5th.  Somehow I don't think I received an email even though I am subscribed to this thread.  Anyway, I just confirmed that this has been fixed.  I removed the hack that I had applied and confirmed that the time format for comments from "today" is correct and is not abbreviated.  Thanks very much for fixing this.
Best Regards,


   
Tom reacted
ReplyQuote
Share:
Scroll to top