LeoClock

What it is

LeoClock is a clean and simple yet very functional clock available as Joomla module and standalone script.

Unlike most Joomla module clocks I could find this does not use Javascript to get the time but instead does so through PHP which means mainly two things. First, everyone visiting the page will get the same time even if the clock on their computer is wrong as it uses the Server clock. Second, it has access to the handy timezone options in PHP, e.g "Europe/London" and "America/New_York".

The settings for the module are the following:

The module supports multiple instances running on the same page, just make sure you give them different names.

The module is available in Joomla 1.5 and Joomla 2.5 versions. The 2.5 version has been tested with Joomla 2.5 as well as 3.0 but it should work on any version above 1.6.

Why I created it

I wanted a clock for my guild's website that showed everyone the same time, I wanted it to be for a specific timezone, and I wanted the clock to update in realtime. PHP is of course only run when the page loads so can't provide a live clock and Javascript relies on the clock in the visitor's computer and has no function to simply pick a timezone. I combined the best of both.

The clock started out like a single .php file with all the code which I hosted on my own server and put on the guild site using an iframe. I later decided to convert it into a proper Joomla module so it could run directly on the site and share it.

Eventually I moved the guild site away from Joomla and thus converted the Joomla module back to a standalone script which can now be found here as well for those who might want a great clock for their non-Joomla site.

Future plans

I consider LeoClock feature complete, it does more than I ever needed of it and I have no plans for additional functionality.

I do want to rewrite it at some point, using things I've learnt since and possibly clean up the code. Could give me a freash start with better version numbering too.

If you have suggestions, feel free to send them my way, I might do something with it.

Should any bugs show themselves LeoClock will of course receive bugfixes. The exception to this is the Joomla 1.5 version which will not be updated beyond 1.2.5.

Demo

Below are three instances of LeoClock with varying configurations.

Pacific Time
Europe, London
Paris

Version History

License

GNU GPL v3

Download

If you're updating your Joomla module install you might need to open the settings page for any existing instances of the module and reapply the settings (no need to change anything) for the clock to work.

Latest version:

LeoClock 1.3.0 standalone

LeoClock 1.3.1 for Joomla 2.5 and up

LeoClock 1.2.5a for Joomla 1.5