Fix formatting timezone offset
Displaying the offset in seconds makes very little sense. We should adhere to ISO 8601 format of `+HH:MM` which is much easier to understand. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
87884b6412
commit
6a425ee891
3 changed files with 41 additions and 3 deletions
|
|
@ -252,6 +252,7 @@ def main():
|
|||
def run_compose(compose, create_latest_link=True, latest_link_status=None):
|
||||
import pungi.phases
|
||||
import pungi.metadata
|
||||
import pungi.util
|
||||
|
||||
errors = []
|
||||
|
||||
|
|
@ -262,9 +263,7 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
|
|||
compose.log_info("Working directory: %s" % os.getcwd())
|
||||
compose.log_info("Command line: %s" % " ".join([pipes.quote(arg) for arg in sys.argv]))
|
||||
compose.log_info("Compose top directory: %s" % compose.topdir)
|
||||
is_dst = time.daylight and time.localtime().tm_isdst > 0
|
||||
compose.log_info("Current timezone offset: %s"
|
||||
% time.altzone if is_dst else time.timezone)
|
||||
compose.log_info("Current timezone offset: %s" % pungi.util.get_tz_offset())
|
||||
compose.read_variants()
|
||||
|
||||
# dump the config file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue