carderne / signal-export

Export your Signal chats to markdown files with attachments
Other
481 stars 50 forks source link

More precise timestamps #108

Closed mitar closed 6 months ago

mitar commented 7 months ago

It is possible to output more precise timestamps?

carderne commented 6 months ago

Can you elaborate?

The code that formats them as 2024-03-12 12:25 is here: https://github.com/carderne/signal-export/blob/b04bc4632bc76ffc680e7bbfe3cdac78e72ff8b1/sigexport/main.py#L112-L114

Do you want seconds added to this or something? Not a bad idea, but it would not be very backward-compatible and I'm hesitant to add still more options... On the HTML side it's better as people can easily adjust that with CSS.

mitar commented 6 months ago

Yes, this is what I meant. So adding seconds.

I think it might be fine if we get JSON output. Then I can also format stuff myself.

carderne commented 6 months ago

Okay I'll close this in favour of #110.

carderne commented 6 months ago

Btw @mitar I ended up doing this for Markdown and HTML. Seconds are now included.

mitar commented 4 months ago

Looks great, thanks!