zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

Presence timestamps are displayed in the future #428

Closed tazjin closed 1 year ago

tazjin commented 1 year ago

In short, telega somehow shows all presence timestamps of my contacts in the future. If a contact was last online, say, 24 minutes ago, telega will display "was last seen in 24 minutes".

I haven't debugged this yet because it's pretty amusing, but wanted to file this issue just in case. I'll update it with debugging progress as I go along.

I think this might somehow be timezone related (I'm in UTC+3, Moscow time, and my system time is, too).

Telega Setup

OS: NixOS 23.11 (Tapir) Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) Features: svg webp Telega: telega v0.8.151 (TDLib v1.8.15-GITDIR-) (telega-server v0.8.2) MELPA: 20230808.1055

tazjin commented 1 year ago

I think this might somehow be timezone related (I'm in UTC+3, Moscow time, and my system time is, too).

Turns out it's not, it's a simple string templating bug. I'll send a PR.