=== CSDev Dash Clock ===
Contributors: cdsaenz
Tags: clock, admin bar, dashboard, timezone, utc
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Displays a live clock in the WordPress admin bar, with timezone info and a one-click UTC toggle.

== Description ==

CSDev Dash Clock adds a small live clock to the WordPress admin bar so you always know what time it is on the site you're managing.

Features:

* Live clock in the admin bar, updated every second.
* Shows the site's configured timezone next to the time (e.g. "Buenos Aires UTC-3").
* Click the clock to toggle between the site timezone and UTC. The choice is remembered.
* Hover the clock to open a small dropdown with the full date and, for administrators, a link to the clock settings.
* Optional settings (Settings > Dash Clock): hide the clock on the frontend, choose 12-hour, 24-hour or the WordPress time format, and show or hide seconds.

Works right after activation — the defaults show the clock everywhere, in 12-hour format with seconds.

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/` directory, or install it directly through the "Plugins" screen in WordPress.
2. Activate the plugin through the "Plugins" screen.
3. The clock appears automatically in the admin bar for any user who can see the admin bar.

== Frequently Asked Questions ==

= Does this add any settings page? =

Yes, a small one under Settings > Dash Clock, but you don't need to touch it. The timezone always comes from Settings > General.

= Can I show the clock on the front end too? =

Yes, as long as the admin bar is showing (e.g. for logged-in users who have it enabled). This is on by default; uncheck "Frontend" in Settings > Dash Clock to show it in the dashboard only.

= Does this store any data? =

A single browser cookie remembers whether you last chose UTC or the site's local timezone. The settings are stored in one option (`csdev_dash_clock_settings`), which is removed when you delete the plugin.

== Screenshots ==

1. The clock in the admin bar showing local site time and timezone.
2. The clock toggled to UTC (click the time to switch).
3. Hover dropdown with the full date and a "Clock settings" link, and the Settings > Dash Clock page.

== Changelog ==

= 1.1 =
* New: Settings > Dash Clock page.
* New: option to hide the clock on the frontend (shown by default).
* New: time format option: 12-hour (default), 24-hour, or follow the WordPress time format.
* New: option to show or hide seconds.
* New: "Settings" link on the Plugins screen.
* Changed: the date now appears in a standard admin bar dropdown, together with a "Clock settings" link for administrators.

= 1.0 =
* Initial public release.

== Upgrade Notice ==

= 1.1 =
Adds a settings page: hide the clock on the frontend, 12/24-hour format and seconds. Defaults keep the 1.0 behaviour.

= 1.0 =
Initial public release.
