Skip to:

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#6421 closed defect (bug) (no action required)

Incorrect timestamp in messaging

Reported by: adhoc-magicit's profile adhoc-magicit Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2.3
Component: Core Keywords:
Cc: adhoc@…


Time stamp in messages are incorrect. PHP time, server time, wordpress time are set correctly. Time is incorrect 2/3 hours. It is show correctly when send messages but incorrect when receiving.

WordPress Version: 4.2

Change History (12)

#1 @adhoc-magicit
9 years ago

  • Cc adhoc@… added

#2 @boonebgorges
9 years ago

Time is incorrect 2/3 hours

Can you explain this in more detail? Time is off by two-thirds of an hour? Or it's off by two or three hours? Perhaps you can give specific examples and/or screenshots to clarify.

#3 @adhoc-magicit
9 years ago

It is difficult to give a screenshot because is not me who is having bad time stamp. I can confirm that it is 2 hours.

When I sent message is showing me correct time. But the person who receive it shows it incorrectly. received two and minute ago when I sent it 1 minute ago. But on mine is showing sent 1 minute ago.

#4 @adhoc-magicit
9 years ago

No additional modules are installed it is only BuddyPress and WordPress.

#5 @boonebgorges
9 years ago

Thanks for the additional details. Can you share more information about your WP/server timezone config? Are you in GMT-2 or GMT+2?

#6 @adhoc-magicit
9 years ago

Hope that helps.

#7 @boonebgorges
9 years ago

Thanks for the screenshot.

Is there any chance you can be more specific about where the incorrect timestamp is appearing? Is it the timestamp ("Sent x minutes ago") that appears next to a user's name when viewing a single thread, eg

Can you easily access the database directly, either via the command line or a program like PHPMyAdmin? Verify that date_sent entry in the wp_bp_messages_messages table is correct - it should be stored in UTC.

The only way I'm able to reproduce the problem in any way is to override WP's resetting of the default timezone to 'UTC' If I set this to 'Europe/Warsaw', then I see the offset that you've reported here. But even in this case, the offset is the same for each user. WP and BP have no native functionality that allows individual accounts to set their own local time, so the same timestamp should be appearing for everyone. I know you said that this is a clear WP/BP installation, but please double check that you don't have anything in wp-config.php, wp-content/mu-plugins, or your theme that might be affecting timezone offsets, specifically on a per-user basis.

You might also consider reaching out to your host to ask whether they're doing anything that might interfere with WP's timezone settings.

#8 @adhoc-magicit
9 years ago

In data base 2015-05-06 13:25:11

Local time that message has been sent 2015-05-06 15:25:11

User that received a masseage has an information received 2 hours ago.

We going to change theme to standard WordPress theme and check it out. Going to let you know :)

#9 @r-a-y
9 years ago

Is this the same problem as #2250?

#10 @r-a-y
9 years ago

This might be fixed due to changes in #2693.

Once BP 2.3-beta is released later in the week, can you test with the beta (or with the latest developmental build) and see if this is still happening, adhoc-magicit?

#11 @DJPaul
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing due to no reporter feedback and no regular contributors being able to recently recreate timestamp problems.
Wouldn't surprise me if we didn't have an edge case somewhere (timezone stuff is hard), so we can re-open this if we get more information.

#12 @DJPaul
8 years ago

  • Component changed from API to Core
Note: See TracTickets for help on using tickets.