Added stripping of .local from /host clock format

pull/151/head
aristocratos 2020-10-08 17:25:46 +02:00
parent 3e65c68e78
commit be75d1751c
1 changed files with 2 additions and 0 deletions

View File

@ -1517,6 +1517,8 @@ class Box:
"/host" : os.uname()[1], "/host" : os.uname()[1],
"/user" : os.environ.get("USER") or pwd.getpwuid(os.getuid())[0], "/user" : os.environ.get("USER") or pwd.getpwuid(os.getuid())[0],
} }
if clock_custom_format["/host"].endswith(".local"):
clock_custom_format["/host"] = clock_custom_format["/host"].replace(".local", "")
@classmethod @classmethod
def calc_sizes(cls): def calc_sizes(cls):