bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
9.47k stars 1.22k forks source link

Posting with a wrong client system clock will set the wrong timestamp on post #5755

Open runarberg opened 2 weeks ago

runarberg commented 2 weeks ago

Steps to Reproduce

  1. Manually adjust your system clock on the client (e.g. 4 days in the past)
  2. Post something
  3. Set your client’s system clock back to correct time and refresh
  4. See the timestamp of your post 4 days in the past

Attachments

No response

What platform(s) does this occur on?

Web (Desktop)

Device Info

Mozilla Firefox 131.0.2 on Ubuntu 24.04

What version of the app are you using?

Build version: 1.92.1; Bundle info: 6550029 (prod); Bundle date: 24101220; Platform: web

Additional Information

This bug only appears if you set your system clock back in time. If you set your clock forward in time it wont create a draft-like post which appears in the future.

runarberg commented 2 weeks ago

Possibly related to #1812. However this is not just a display issue as your post will actually be put back in chronological feeds.

runarberg commented 2 weeks ago

Here is an example of a skeet I posted a moment ago, but it says I posted it back in 2019 (where I correctly predict the Coronavirus pandemic)

https://bsky.app/profile/rokksula.bsky.social/post/3l6iofff5n52h

surfdude29 commented 2 weeks ago

This is intended behaviour, please see: https://docs.bsky.app/docs/advanced-guides/timestamps

One reason why you might want to set a timestamp in the past is, for example, if you import old posts (e.g. from your Twitter archive) into a Bluesky account. This means that the original date and time for each tweet can be set on each imported Bluesky post.