Select Moodle version:

Blocks: Simple Clock

block_simple_clock
A simple JavaScript clock that highlights the time difference between a student and the Moodle server
Maintained by: My ugly mug Michael de Raadt
  • 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
screenshot
screenshot
screenshot
screenshot
screenshot
screenshot
screenshot

Contributors

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

Comments RSS

Show comments
  • Picture of Mr. Marc
    Sat, Apr 14, 2012, 2:45 AM
    I tried this with our current version Moodle 2.2.1+ (Build: 20120119)
    and got a version.php error and it would not install
  • My ugly mug
    Mon, Jun 11, 2012, 3:41 PM
    Hi, Guys.

    Thanks for your feedback.

    Mr. Marc: You may be trying to install the block in the wrong directory.
    Diana H.: I wasn't able to replicate your problem. Could you create a but report on tracker.moodle.org with some details of how you had the block set up. I will then be happy to look it.
  • Picture of Ashi yadav
    Wed, Jun 27, 2012, 2:52 PM
    very very very nice
  • Alan Arnold photo
    Wed, Nov 14, 2012, 9:30 AM
    Great little block Michael. One small issue for us is that it doesn't seem to respect the time zone setting in your profile. Is that by design? We're still on 2.1
  • My ugly mug
    Wed, Nov 14, 2012, 9:58 AM
    Hi, Alan.

    I don't think changing the time zone according to the user's profile would be appropriate. The block attempts to show the time on the server (with respect to server timezone settings) and the user's machine. If the user has a deadline to meet, that is the information they would need.
  • Alan Arnold photo
    Wed, Nov 14, 2012, 11:00 AM
    But doesn't your profile time zone setting automagically change assignment deadlines etc to your local time? Assuming that they have this setting correct of course smile Quite often they don't, particularly when they travel. Wouldn't it be handy if your block said "this is what I think your local time is, and if you think that's not correct, check your profile settings. Oh, and btw,this is what the server time is." in fewer words of course ;)
  • My ugly mug
    Wed, Nov 14, 2012, 2:19 PM
    Hi, Alan.

    You're correct. I'm not sure that showing the adjusted time for the server time is a good idea. Most students wouldn't set a timezone. If I did adjust the time using the user's profile setting, I think it would be even more confusing. Two possibilities: introduce a third time (server time adjusted to user's time zone) or add a note somehow describing what times are shown.
  • Picture of marta gamez
    Sat, Aug 24, 2013, 5:04 AM
    Hola Michael, tengo un moodle 2.5 y agregue el simple clock, la pregunta es como puedo cambiarle los nombre de servidor y usted que es lo que me traduce por defecto ya que el idioma de mi moodle es español. Necesito que la referencia sea otra. Gracias por la ayuda que me pueda prestar.
  • My ugly mug
    Mon, Aug 26, 2013, 8:28 AM
    Hola, Marta.

    Yo he confiado en Google Traducir al leer su mensaje y escribir una respuesta, así que por favor me disculpe si he entendido mal su pregunta.

    El bloque se basa en cadenas de un archivo de idioma. Puede editar las cadenas a través de Moodle al ingresar como administrador y vaya a Administración del sitio> Idioma> Idioma personalización. Hay algo de documentación sobre cómo hacer esto aquí ...

    http://docs.moodle.org/all/es/Personalizaci% C3% B3n_del_idioma

    Aún mejor sería que te permite traducir las cadenas en el paquete de idioma distribuida. Esto puede ser compartida con todos los hablantes de la lengua. Ir a lang.moodle.org para más información.

    ---

    Hi, Marta.

    I've relied on Google Translate to read your message and write a reply, so please excuse me if I have misunderstood your question.

    The block draws on strings from a language file. You can edit the strings through Moodle by logging in as the administrator and navigating to Site admin > Language > Language customisation. There is some documentation on how to do this here...

    http://docs.moodle.org/all/es/Personalizaci%C3%B3n_del_idioma

    Even better would be for you to translate the strings in the distributed language pack. This can then be shared with all speakers of your language. Go to lang.moodle.org for more information.
  • Picture of Richard Charron
    Thu, Oct 17, 2013, 3:09 AM
    Hi Michael. Thank you for this very useful block. Is it possible to show the time in a 24 hour format ?
  • My ugly mug
    Fri, Oct 18, 2013, 4:31 PM
    Hi, Richard.

    That sounds like a reasonable improvement. If you create an improvement issue for the plugin on tracker.moodle.org I will make the change.
  • Picture of Richard Charron
    Fri, Oct 18, 2013, 9:03 PM
    Thanks for your reaction, Michael. I juste created and improvement issue on tracker.moodle.org for this improvement.
  • My ugly mug
    Fri, Nov 15, 2013, 6:37 PM
    Hi, all.

    I've just uploaded a new version with changes that were in a version that was lost when moodle.org was rolled back. If you've downloaded this block in the last two days, you should download it again now.
  • Picture of Phil Makinson
    Mon, Apr 14, 2014, 11:45 PM
    Hey Michael! Just installed this on our site; and wondered if it would be possible to edit the text fields on the block. I want to be able to change the 'Server' name to something bespoke.

    If this is a relatively easy fix, I am happy to log an improvement on tracker.moodle.org.

    Cheers
  • My ugly mug
    Wed, Apr 16, 2014, 3:51 PM
    Hi, Phil.

    You can change this by altering the language string for this label. Go to Site admin > Language > Language customisation and load the strings for block_simple_clock.php and edit the sting for "server".
1 2
Please login to post comments