diff --git a/server.py b/server.py index 9f62e5a49..f0f57a3d0 100644 --- a/server.py +++ b/server.py @@ -407,8 +407,10 @@ def format_datetime(value): @app.context_processor def inject_stage_and_region(): + now = arrow.now() return dict( - YEAR=arrow.now().year, + YEAR=now.year, + NOW=now, URL=URL, SENTRY_DSN=SENTRY_FRONT_END_DSN, VERSION=SHA1, diff --git a/templates/base.html b/templates/base.html index 3a94b8233..f53a8ee60 100644 --- a/templates/base.html +++ b/templates/base.html @@ -86,7 +86,7 @@
- {% if current_user.is_authenticated and current_user.should_show_upgrade_button() %} + {% if NOW.timestamp < 1701475201 and current_user.is_authenticated and current_user.should_show_upgrade_button() %}