mddub / nightscout-osx-menubar

View Nightscout data in the OS X menu bar.
MIT License
53 stars 42 forks source link

How to set 'Updated time' to 24hrs clock? #13

Open moccon opened 6 years ago

moccon commented 6 years ago

I don't like using AM and PM, my Macbook is displaying 24hrs and its faster to see if it matches.

It regularly falls behind so i need to check it fast.

n0rbertg commented 6 years ago

Hi,

I just installed this and had the same issue. I guess the time format should be displayed as it's set in the os regional setting but I am not a developer :) Not a pretty solution, but works. Open the nightscout_osx_menubar.py as described in the readme and make a small change.

Line 88: Original (am/pm) "Updated %s" % datetime.now().strftime("%a %-I:%M %p"),

Updated (24H) "Updated %s" % datetime.now().strftime("%a %-H:%M"),