Jump to content

Garage clock


Recommended Posts

  • Administrator
Posted

This is config syntax for clock.xc line 75:

 

12h: {{h%02d}}:{{m%02d}}

 

24h: {{H%02d}}:{{m%02d}}

 

h - 12-hour format of an hour (01 to 12)

H - 24-hour format of an hour (00 to 23)

 

Make no sense to me why is it reversed.

Posted

Here's what I see in clock.xc:

 

    // {{H}}     - hour in 12-hour format     / часы в 12-часовом формате
    // {{AM|PM}} - AM/PM                      / AM/PM
    // Macros formatting allowed, for example: {{AM?a.m.|p.m.}}
    //
    // Clock format.
    // Формат часов.
    "format": "<textformat tabstops='[105,105]' leading='-39'><font face='$FieldFont'><font size='36' color='#f3c57a'><b>  {{h%02d}}:{{m%02d}}</b> {{AM?a.m.|p.m.}} </font><tab><font size='15' color='#e3dfc6'><b>{{D%02d}}.{{M%02d}}. {{Y}}\n<tab>{{WW}}</b></font></font></textformat>",

It looks like "H" should be used for 12-hour format, not "h". I made the change manually and now it works just fine.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.