Current system time

  • Arne Eckmann

    Arne Eckmann - 2004-02-04

    No such things as AM and PM exists in modern Denmark where the clock is based on 24 hour.

    In order to carry out a proper localization we need a 12/24 hour selection in the language settings.

    And like Roland previously said, it also would be nice if the size of the clock and its associated text could be reduced substantially.

    Best regards,


    • John Finlay

      John Finlay - 2004-02-04

      Currently we have a $DATE_FORMAT variable in the language settings for the language's date format.  What if we add a $TIME_FORMAT variable that would allow you to set the time you want.  To make it simple it could follow the conventions of the PHP date function.

      So for English: $TIME_FORMAT="g:i:sa";
      For Danish: $TIME_FORMAT="G:i:s";

      How does this sound?


      • KosherJava

        KosherJava - 2004-02-04

        Would this be a user setting?
        If the site had a default could the user pick up the site default unless the user selected a different one?

        • Phantomas

          Phantomas - 2004-02-06

          I think I will first add it as a global setting.
          Later we can talk about a user setting :-)

      • Phantomas

        Phantomas - 2004-02-05

        I will work on this issue this weekend :-)

    • Arne Eckmann

      Arne Eckmann - 2004-02-04

      Hi John

      G = 24 hour no leading zeroes.
      i = minutes with leading zero (not available without leading zeroes)
      s = seconds with leading zero (not available without leading zeroes)

      It sounds fine with me, and the date is already okay i.e. the name of the month is in Danish and starts correctly with lower case.

      However, since the time is static, it may be a good idea to drop the seconds ?

      Best regards,


    • Arne Eckmann

      Arne Eckmann - 2004-02-06

      Thanks Kurt!

      Best regards,



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks