Cybrkyd's git repositories

GitGen • commit: 948fd73

commit 948fd73ce917e5618fa85de7d753c2e5bdc3d49633bc833d257382ac032716f5
author cybrkyd <noreply@cybrkyd.com> 2026-01-14 16:38:56 +0000
committer cybrkyd <noreply@cybrkyd.com> 2026-01-14 16:38:56 +0000

Commit Message

TZ offset on main index footer "Generated on" text

📊 Diffstat

gitgen.py 10
1 files changed, 7 insertions(+), 3 deletions(-)

Diff

diff --git a/gitgen.py b/gitgen.py
index 25c12d4..a196cee 100644
--- a/gitgen.py
+++ b/gitgen.py
@@ -256,6 +256,10 @@ class HTMLGenerator:
def generate_index(self, repos: List[Dict]) -> str:
"""Generate main index page"""
+
+ current_time = datetime.datetime.now(datetime.timezone.utc)
+ time_str = current_time.strftime('%Y-%m-%d %H:%M:%S %z')
+
html_fragments = [
"""<!DOCTYPE html>
<html lang="en">
@@ -300,17 +304,17 @@ class HTMLGenerator:
</tr>
""")
- html_fragments.append("""
+ html_fragments.append(f"""
</tbody>
</table>
</div>
<div class="footer">
<p>Made with GitGen by Cybrkyd</p>
- <p>Generated on {}</p>
+ <p>Generated on {time_str}</p>
</div>
</body>
- </html>""".format(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')))
+ </html>""")
return "".join(html_fragments)