Skip to content

Commit

Permalink
fix(util): more readable timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
hizkifw committed Apr 21, 2022
1 parent 8f25c01 commit fb23901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fc2_live_dl/util.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import re
import sys
import time
import asyncio
import argparse
from datetime import datetime


class Logger:
Expand Down Expand Up @@ -76,7 +76,7 @@ def _print(self, color, *args, inline=False, spin=False):
end = self.ansi_delete_line if self.print_inline else ""
end = end + ("\r" if inline else "\n")

timestamp = time.strftime("%FT%X%z")
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

print(
"{} {}[{}]".format(timestamp, color, self._module),
Expand Down

0 comments on commit fb23901

Please sign in to comment.