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
    • Similar Issues:
      Show 5 results 

      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)

        Activity

        Hide
        Shitian "Shelton" Zhang added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

        Users see messages in server's time or outgoing messages are in system time, but incoming messages are in server's time.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 47247879d351016578178f28028e73e4cb34e107.
        Plugins 6.1.x EE GIT ID: 43d112219bcc59fb6922db1d4352eae42a45f992.
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0496050aa8002e8b83bc3a0724ea08f4fa9e650a.
        Plugins 6.2.x EE GIT ID: f747b57ae4905fdad546079bc3070fbeec185d3b.

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

        Show
        Shitian "Shelton" Zhang added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Users see messages in server's time or outgoing messages are in system time, but incoming messages are in server's time. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 47247879d351016578178f28028e73e4cb34e107. Plugins 6.1.x EE GIT ID: 43d112219bcc59fb6922db1d4352eae42a45f992. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0496050aa8002e8b83bc3a0724ea08f4fa9e650a. Plugins 6.2.x EE GIT ID: f747b57ae4905fdad546079bc3070fbeec185d3b. Users see message time "corrected" to their own system time.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 34 weeks, 6 days ago

              Development

                Structure Helper Panel