Simple Clock

Blocks ::: block_simple_clock
Maintained by My mugMichael de Raadt
A simple JavaScript clock that highlights the time difference between a student and the Moodle server
Latest release:
1173 sites
30 fans
Current versions available: 3
  • A simple JavaScript clock
  • Highlights the time difference between a student and the Moodle server


  • Maintains time difference between page loads
  • Shows site icon and user image as clock icons


It is possible to achieve the following configurations.

  • Show server clock, user clock or both
  • Show seconds
  • Show day names
  • Show 12 or 24 hour time
  • Hide header/title
  • Hide clock icons
  • Change block title


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6
Screenshot #7


My mug
Michael de Raadt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Tue, Feb 6, 2018, 8:18 AM
    Hi Veronica,
    I have the module running in 3.3 with no issues. I hope Michael will update the source accordingly soon.
    Can't say anything about 3.4 yet.
  • My mug
    Sun, Feb 18, 2018, 4:35 AM
    Hi, all.

    I haven't really changed much, but I did a code review and uploaded a new version for 2.9 to 3.4.
  • Wed, Jul 4, 2018, 7:24 AM
    Hi Michael, thanks for your plugin. Do you plan to upgrade to Moodle 3.5?
  • My mug
    Wed, Jul 4, 2018, 4:08 PM
    Hi, Veronica.

    It still seems to be working on 3.5, so I have added that version.

  • Thu, Jul 5, 2018, 4:29 AM
    thank you very much Michael!!!
  • Tue, Jan 7, 2020, 7:32 AM
    Hi, can it use in moodle Moodle 3.7?
  • Tue, Jan 7, 2020, 9:26 AM
    @Maximilliano Perez It should work in 3.7 also. The code is so simple that it should simply work for a few versions to come. Caution: I haven't tested it yet beyond 3.6.3+
  • Sat, Aug 29, 2020, 3:09 AM
    Hi, I can confirm that plugin is working on 3.9 too, as Alexander wrote "The code is so simple that it should simply work for a few versions to come".
    I want to use this opportunity to thank Michael for all those useful plugins that he produced during all these years.
    Also I would like to ask is it possible to show time based on users time-zone settings in the profile (as additional option), because we have problems with that. We have counsellors all over Canada (six time-zones) and our server time is not relevant in our case, on the other hand we have thousands of clients all over the world, and for lot of them choosing the proper time-zone is a challenge. Couple of examples: some clients from India are choosing Asia/Deli for their time-zone setting simply because it is sound like New Delhi, and the truth is that Asia/Deli is two and a half hours before India time; some of our clients from Nigeria are choosing UTC as their time-zone setting but Nigeria doesn't observe DST and we have again wrong time difference, and there are lot of other examples but I don't have time to put them here all.
    It would be great if clock block can show time based on users time-zone setting that can be compared with system clock in the right lower corner and that way check if time-zone setting is correct, or show both - user setting as it is now and plus time based on time-zone setting to be visible one to another (maybe even time-zone chosen to be more noticeable). Just to add that we are using scheduler plugin for scheduling live meeting in BBB, and scheduler is showing local time for counsellors when they are setting available slots, and showing that same slots for clients in their local time, then you can imagine how problematic all these wrongly set time-zones are.
    Thank you Michael.
  • Tue, Nov 3, 2020, 2:40 AM
    Hello! Thanks for this plugin! It has been very helpful for us as we have students in mutiple time zones. Actually, I am also wondering if there is any way to add other time zones to the clock. Technically I would love to have: US pacific, US central/Mexico, Peru, Venezuela and Chile as time zones since we have students in all these areas who sometimes have to interact with one another and don't know what time it is in the other country. Is there a way to add more than just server and user?
  • My mug
    Sun, Nov 8, 2020, 3:08 PM
    Hi, Kim.

    Adding another time would require code changes. Feel free to do that or get someone else to as I don't think I will.

  • Tue, Feb 22, 2022, 4:38 PM
    It says "maturity" for Moodle version 3.11.5. Is anyone having problems using it in 3.11? Thank you.
  • Thu, Apr 28, 2022, 10:48 PM
    Hi, could you please "fix" the git tag on Github? It points to, while only the most current commit has the corresponding version.php version number for the tag? (You can just delete the tag and recreate it again)
  • Fri, Aug 26, 2022, 3:53 PM
    Will this work on version 4.0?
  • Sat, Sep 17, 2022, 11:06 PM
    I have the same question as Sree... will there be a version for 4.0?? I tried the 3.11 and it messed up my page and I had to delete it.
  • Sat, Sep 17, 2022, 11:07 PM
    And a couple of years ago I asked about how to add more countries to the clock, but was told that it would take writing code. I have no idea how to do that... and I am just wondering if anyone else out there did it and if they could tell me what code to put and where? Thanks
Please login to post comments