ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
1.92k stars 63 forks source link

Add timestamps_format option to configuration file #378

Closed stevengirving closed 3 months ago

stevengirving commented 3 months ago

Add TimestampISO as a boolean value in config defaulted to false.

If TimestampISO is true, timestamps will use time.DateTime format, otherwise it defaults to original time.Kitchen.

ayn2op commented 3 months ago

Just add a new configuration field "timestamp_format" (string) that accepts Go time layouts. The default value of the field is time.Kitchen.

stevengirving commented 3 months ago

Just add a new configuration field "timestamp_format" (string) that accepts Go time layouts. The default value of the field is time.Kitchen.

Thank you! Pretty new to all this and just dabbling as I appreciate this project! The addition should be cleaned up and good to go, but if there's anything else please let me know :)

ayn2op commented 3 months ago

:rocket: LGTM! Thank you for the contribution!