Skip to content

Instantly share code, notes, and snippets.

@alexcepoi
Last active July 16, 2016 11:46
Show Gist options
  • Save alexcepoi/2e62e6622f4204eab99027eda813e911 to your computer and use it in GitHub Desktop.
Save alexcepoi/2e62e6622f4204eab99027eda813e911 to your computer and use it in GitHub Desktop.
i3pystatus localtime not working
# Test config 1:
status.register('clock', format=('%-d %b %H:%M %Z', 'Europe/Bucharest')) // works
status.register('clock', format=('%a %-d %b %H:%M')), // localtime, should be London but still shows EEST (Bucharest time)
{"markup": "none", "color": "#2e9ef4", "full_text": "Sat 16 Jul 14:37", "urgent": false, "name": "i3pystatus.clock.Clock", "instance": "140691471499160"},
{"markup": "none", "full_text": "16 Jul 14:37 EEST", "urgent": false, "name": "i3pystatus.clock.Clock", "instance": "140691471497088"}
# Test config 2:
status.register('clock', format=('%-d %b %H:%M %Z', 'America/Los_Angeles')) // works
status.register('clock', format=('%a %-d %b %H:%M'), // localtime, should be London but still shows PDT (LA time)
{"urgent": false, "name": "i3pystatus.clock.Clock", "instance": "140029821034392", "full_text": "Sat 16 Jul 04:36", "color": "#2e9ef4", "markup": "none"},
{"urgent": false, "name": "i3pystatus.clock.Clock", "instance": "140029821032320", "full_text": "16 Jul 04:36 PDT", "markup": "none"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment