From a0efdb1d7954772f5ffe726090c18f15ded18418 Mon Sep 17 00:00:00 2001 From: Halhadus Date: Sat, 7 Dec 2024 01:02:29 +0300 Subject: [PATCH] Maked last update time human-readable --- websitemodule.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websitemodule.py b/websitemodule.py index 37d2857..419c142 100644 --- a/websitemodule.py +++ b/websitemodule.py @@ -41,8 +41,7 @@ def generatehtmlcode(url): html += '\n' html += '

Halhadus\' Local Wrapped

\n' html += '

Total Play Time: ' + str(int(total_play_time(url)/60)) + ' minutes

\n' - # HUMAN READABLE last updated time (example: 2021-09-01 12:34:56) of assets/localwrapped/music.db (UTC +3) - html += '

Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime("assets/localwrapped/music.db")).strftime('%Y-%m-%d %H:%M:%S') + ' (UTC +3)

\n' + html += '

Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime("assets/localwrapped/music.db")).strftime('%Y-%m-%d %H:%M:%S') + ' (server time)

\n' html += '

Most Played Musics

\n' html += '
    \n' count_list_formatted = []