UTC vs. local time (And samba addition)
0.26 of mythtv has changed to reporting UTC time from the backend. I'm not a python person, and some google searches seemed to show some confusion as to utc and local time handling in python, so I haven't put a lot of effort into trying to implement this so far. I was hoping you could extend the scripts to perhaps query the version of mythtv and translate the time accordingly?
Also, I use my pc also as a samba server, so I added a samba activity monitor that I wanted to share in case others might find it useful.
import subprocess
import activity
from activity import Activity
from globals import log, run
class SambaActivity(
"""
Checks for any locked files from samba server.
"""
def is_idle(self):
if "No locked files" in locks:
return True
return False
activity.
if __name__ == "__main__":
mon = SambaActivity()
print "idle:", mon.is_idle()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- TurnOff Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Justin for more information if necessary.