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:
1106 sites
104 downloads
30 fans
Current versions available: 3
  • 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

Yorumları göster
  • Alexander Deichman
    Sal, 6 Şub 2018, 8:18 Öğleden önce
    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
    Paz, 18 Şub 2018, 4:35 Öğleden önce
    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.
  • Verónica V.
    Çar, 4 Tem 2018, 7:24 Öğleden önce
    Hi Michael, thanks for your plugin. Do you plan to upgrade to Moodle 3.5?
    Greetings.
    Verónica.
  • My mug
    Çar, 4 Tem 2018, 4:08 Öğleden Sonra
    Hi, Veronica.

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

    Michael
  • Verónica V.
    Per, 5 Tem 2018, 4:29 Öğleden önce
    thank you very much Michael!!!
  • Maximiliano Perez
    Sal, 7 Oca 2020, 7:32 Öğleden önce
    Hi, can it use in moodle Moodle 3.7?
    gülüyor
  • Alexander Deichman
    Sal, 7 Oca 2020, 9:26 Öğleden önce
    @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+
  • Vladimir Miranovic
    Cmt, 29 Ağu 2020, 3:09 Öğleden önce
    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.
  • Kim Solis
    Sal, 3 Kas 2020, 2:40 Öğleden önce
    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
    Paz, 8 Kas 2020, 3:08 Öğleden Sonra
    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.

    Michael
  • Dr. Nellie Deutsch
    Sal, 22 Şub 2022, 4:38 Öğleden Sonra
    It says "maturity" for Moodle version 3.11.5. Is anyone having problems using it in 3.11? Thank you.
  • Daniel Poggenpohl
    Per, 28 Nis 2022, 10:48 Öğleden Sonra
    Hi, could you please "fix" the git tag https://github.com/deraadt/moodle-block_simple_clock/releases/tag/2018021800 on Github? It points to https://github.com/deraadt/moodle-block_simple_clock/commit/de1e0f4d5fb93abfc434fadf2920a26af1291ed0, while only the most current commit https://github.com/deraadt/moodle-block_simple_clock/commit/629ebe3e5255b9acf02d9da5e0c709a2e326449c has the corresponding version.php version number for the tag? (You can just delete the tag and recreate it again)
  • Sree M
    Cum, 26 Ağu 2022, 3:53 Öğleden Sonra
    Will this work on version 4.0?
  • Kim Solis
    Cmt, 17 Eyl 2022, 11:06 Öğleden Sonra
    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.
  • Kim Solis
    Cmt, 17 Eyl 2022, 11:07 Öğleden Sonra
    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
1 2 3 4
Please login to post comments