Blocks: Simple Clock

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
1012 sites
346 downloads
25 fans
  • A simple JavaScript clock
  • Highlights the time difference between a student and the Moodle server

Features

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

Options

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

Screenshots

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

Contributors

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

Comments RSS

Show comments
  • Picture of Jan Hofmann
    Fri, Oct 16, 2015, 2:21 PM
    Hi Michael,
    thanks for the update - is working for me, showing the correct time.

    Jan
  • My mug
    Mon, Oct 19, 2015, 5:35 AM
    Thanks, Jan.
  • Picture of Gina Wilson
    Tue, Oct 18, 2016, 3:19 AM
    Hello,
    Is there any work being done on this for 3.1+? This would be a very useful block to use on our site.
    Thank you,
    Gina
  • My mug
    Tue, Oct 18, 2016, 3:34 AM
    I haven't tested it yet, but it should still work. There's not too much in this block that is version specific.
  • Picture of Miguel Angel Velasquez Teran
    Fri, Dec 2, 2016, 6:33 AM
    Hello, are you going to update the plugin to work in Moodle 3.1.x?
  • My mug
    Tue, Dec 6, 2016, 10:43 AM
    Hi.

    I've just tested tested the latest release on Moodle 3.1 and 3.2 and it works as expected.

    Enjoy!

    Michael
  • Picture of Verónica V.
    Tue, Feb 6, 2018, 6:23 AM
    Hi Michael, I am writing to consult you if you have plans to improve this plugin to versions 3.3 and 3.4.
    Best regards.
    Verónica.
  • Picture of Alexander Deichman
    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.
  • Picture of Verónica V.
    Wed, Jul 4, 2018, 7:24 AM
    Hi Michael, thanks for your plugin. Do you plan to upgrade to Moodle 3.5?
    Greetings.
    Verónica.
  • 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.

    Michael
  • Picture of Verónica V.
    Thu, Jul 5, 2018, 4:29 AM
    thank you very much Michael!!!
  • Picture of Maximiliano Perez
    Tue, Jan 7, 2020, 7:32 AM
    Hi, can it use in moodle Moodle 3.7?
    smile
  • Picture of Alexander Deichman
    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+
  • Picture of Vladimir Miranovic
    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.
1 2 3
Please login to post comments