diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2017-02-14 23:38:39 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2017-02-14 23:38:39 +0300 |
commit | 674ae068b65bebb669e0cdd58db9f3e0413b0324 (patch) | |
tree | b5f2dedf6ccee573dbcf21383271cf25526baeb9 /powerlevel9k.zsh-theme | |
parent | a202537dd7ec5aad772b81690c1e97fa40bfd0fe (diff) |
Use GMT as timezone for `command_execution_time` segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 9fb231c1..77c9592f 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -572,9 +572,9 @@ prompt_command_execution_time() { # See http://unix.stackexchange.com/a/89748 local humanReadableDuration if (( _P9K_COMMAND_DURATION > 3600 )); then - humanReadableDuration=$(strftime '%H:%M:%S' $(( int(rint(_P9K_COMMAND_DURATION)) ))) + humanReadableDuration=$(TZ=GMT; strftime '%H:%M:%S' $(( int(rint(_P9K_COMMAND_DURATION)) ))) elif (( _P9K_COMMAND_DURATION > 60 )); then - humanReadableDuration=$(strftime '%M:%S' $(( int(rint(_P9K_COMMAND_DURATION)) ))) + humanReadableDuration=$(TZ=GMT; strftime '%M:%S' $(( int(rint(_P9K_COMMAND_DURATION)) ))) else # If the command executed in seconds, print as float. # Convert to float |