Skip to content

Add deployment timestamp to admin preferences page#30

Merged
jonocodes merged 6 commits intomainfrom
claude/show-deployment-time-DRPci
Feb 22, 2026
Merged

Add deployment timestamp to admin preferences page#30
jonocodes merged 6 commits intomainfrom
claude/show-deployment-time-DRPci

Conversation

@jonocodes
Copy link
Owner

Summary

This PR adds a deployment timestamp display to the admin preferences page, allowing administrators to see when the application was last deployed.

Key Changes

  • Added DEPLOY_TIME constant to media/apps.py that captures the current time when the Django app is loaded
  • Updated the preferences view to pass the deployment time to the template context
  • Added a new row to the admin preferences template displaying the deployment time in both relative ("X days ago") and absolute formats

Implementation Details

  • The DEPLOY_TIME is set once at app initialization using timezone.now(), ensuring it reflects the actual deployment/startup time
  • The template uses Django's timesince filter to display a human-readable relative time alongside the full timestamp
  • The deployment time is imported directly from media.apps in the view to avoid circular imports

https://claude.ai/code/session_01VRBpZgE6ySpkPTRTK8jcTj

Record the server start time as a module-level constant in apps.py
and display it in the About section of the preferences page.

https://claude.ai/code/session_01VRBpZgE6ySpkPTRTK8jcTj
@coolify-dgtis
Copy link

coolify-dgtis bot commented Feb 22, 2026

The preview deployment for jonocodes/stashcast:main-bsok8ook4c4kggco40wkcg48 is ready. 🟢

Open caddy | Open Build Logs | Open Application Logs

Last updated at: 2026-02-22 05:33:04 CET

claude and others added 5 commits February 22, 2026 01:49
Use JavaScript to convert the UTC deploy_time to the browser's
local timezone with timezone abbreviation. Falls back to the
server-rendered Django output for non-JS clients.

https://claude.ai/code/session_01VRBpZgE6ySpkPTRTK8jcTj
Corrected 3 fuzzy (auto-guessed) translations in each language that
were wrong and ignored at runtime:
- "Archive feed/Feed" was incorrectly mapped to "Audio feed/Feed"
- "Refetch" was incorrectly mapped to "Prefetching"

https://claude.ai/code/session_01VRBpZgE6ySpkPTRTK8jcTj
@jonocodes jonocodes merged commit f8cb2a9 into main Feb 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants