Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-38673

Chat message timestamps are confusing if system time is off by minutes

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      3
    • Fix Priority:
      4

      Description

      When clients system times differs, message's time in chat portlet is confusing.

      Steps to reproduce

      1. Start Liferay
      2. Create two users, A and B
      3. Deploy the chat plugin
      4. Start 2 Virtual Machines (VM), set the timezone of both to match the reality (so they both show 12:42 pm for example)
      5. Set VM1 system time back about 5 minutes
      6. Set VM2 system time forward about 5 minutes
      7. Start a conversation with the two users and check the timestamps

      WARNING: you should stop NetTime service in VMs when testing with Windows. If not, NetTime sets the time back to the exact time

      Expected behaviour

      Users expect to see message time "corrected" to their own system time

      Issue

      Users see messages in server's time (on trunk) or outgoing messages are in system time, but incoming messages are in server's time (6.1.20)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 5 weeks, 2 days ago