mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 12:43:41 +08:00
72bbc2fa8a
This commit attempts to fix an issue where we are ending up with bad created_at date formats for last messages, which is breaking the DM sort order and sometimes causing DM channels to fall off the list, or show "Invalid date" on mobile. I have not been able to consistently reproduce these issues locally, however the serialzier for the channels index uses MultiJSON.dump() and the Chat::Publisher uses .to_json, both of which format created_at differently for messages. The former is `2023-07-05T06:53:25.977Z` (iso8601). The latter is `2023-07-14 03:59:22 UTC` (.to_s default). Since we are doing comparison and sorting of these dates on the UI we need consistent formatting for the JS Date parsers (and moment) to deal with. If the issue still occurs after this we can investigate further. |
||
---|---|---|
.. | ||
admin | ||
chat | ||
core_ext | ||
chat_controller_spec.rb | ||
direct_messages_controller_spec.rb | ||
emojis_controller_spec.rb |