Skip to content

Conversation

MastilovicRadoslav
Copy link

This PR resolves issue #7816 by updating the admin footer clock so it refreshes dynamically on the client side.

Changes made:

  • Updated _AdminLayout.cshtml footer: wrapped time in with a data-utc attribute.
  • Added new JavaScript file admin-footer-time.js in wwwroot/js/.
  • Implemented script that updates the displayed time every minute without a page reload.

Result:

The footer time is now accurate and continuously updated for the admin user.

This PR resolves issue nopSolutions#7816 by updating the admin footer clock so it refreshes dynamically on the client side.

Changes made:
- Updated `_AdminLayout.cshtml` footer: wrapped time in <span id="admin-now"> with a `data-utc` attribute.
- Added new JavaScript file `admin-footer-time.js` in `wwwroot/js/`.
- The script updates the displayed time every minute without a page reload.

Result:
- The footer time is now accurate and continuously updated for the admin user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants