Skip to content

Commit 22709da

Browse files
committed
Truncate timestamps to minutes in dump filenames
1 parent 302c15a commit 22709da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/glab_discussion/commands

src/glab_discussion/commands/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def _discussion_filename(discussion: Discussion, user_cache: dict[int, UserInfo]) -> str:
1818
"""Compute filename for a discussion dump file."""
1919
first = discussion.first_note
20-
dt = sanitize_filename_part(first.created_at.split(".")[0])
20+
dt = sanitize_filename_part(first.created_at[:16])
2121
user = user_cache.get(first.author_id)
2222
name = sanitize_filename_part(display_name(user) if user else first.author_username)
2323
if user and user.is_bot:

0 commit comments

Comments
 (0)