Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Why the timestamp of messages based on platform? #135

Open
LeiHao0 opened this issue Jun 5, 2017 · 1 comment
Open

Why the timestamp of messages based on platform? #135

LeiHao0 opened this issue Jun 5, 2017 · 1 comment

Comments

@LeiHao0
Copy link

LeiHao0 commented Jun 5, 2017

Submit feature requests to http://www.mattermost.org/feature-requests/. File non-security related bugs here in the following format:

Summary

I confused why the timestamp of messages based on platform? (only if the login user is admin)

Environment Information

  • React Native app: beta
  • Mattermost Server Version: 3.9.0

Steps to reproduce

  1. Login as Admin
  2. change iPhone's Data&Time
  3. post a message

Expected behavior

mattermost-redux/src/actions/posts.js

const timestamp = Date.now();
...
  create_at: timestamp,
  update_at: timestamp

Observed behavior

The timestamp of this Message is based on iPhone's not sever's

Possible fixes

@ThiefMaster
Copy link
Contributor

Probably because the post is created immediately in the UI, even before it has been sent to the server. I'm pretty sure this will eventually replace the timestamp with the one from the server.

chetanyakan pushed a commit to brightscout-alpha/mattermost-redux that referenced this issue Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants