Update $BULLETTRAIN_TIME_12HR

change the "%X" in prompt_time() to "%T", because %X is based on local time so even if  $BULLETTRAIN_TIME_12HR is false, the time would be in 12hr format because of the local.
The %T forces it in 24hr format  whatever your zone is.
This commit is contained in:
Maxime Bruguet
2015-10-29 14:56:43 +01:00
parent 4cddc84bee
commit 4e6b4e9b3f

View File

@@ -426,7 +426,7 @@ prompt_time() {
if [[ $BULLETTRAIN_TIME_12HR == true ]]; then
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%r}
else
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%X}
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%T}
fi
}