cg-Xlib | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cg-Xlib b/cg-Xlib --- a/cg-Xlib +++ b/cg-Xlib @@ -68,14 +68,12 @@ showdate () { # bash doesn't like leading zeros [ "${tzhours:1:1}" = 0 ] && tzhours=${2:0:1}${2:2:1} secs=$(($secs + $tzhours * 3600 + $tzmins * 60)) + [ "$format" ] || format="+%a, %d %b %Y %H:%M:%S $2" if [ "$has_gnudate" ]; then - [ "$format" ] || format=-R - pdate=$(date -ud "1970-01-01 UTC + $secs sec" "$format") + LANG=C date -ud "1970-01-01 UTC + $secs sec" "$format" else - [ "$format" ] || format=-- - pdate=$(date -u -r $secs "$format") + LANG=C date -u -r $secs "$format" fi - echo "${pdate/+0000/$tz}" } # Usage: tree_timewarp [--no-head-update] DIRECTION_STR ROLLBACK_BOOL BASE BRANCH