X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2Ftimezone.sh;h=2a00e86e37eb022eba646d823ffc4786dd69984f;hb=dadccb496713a424bf80828b8a538b06d8dea9ae;hp=6d4387be417f541e68284193eaf3193de9a017e3;hpb=31f603e26a0b1135a5eebc43e49c762c608096b4;p=home.git diff --git a/.profile.d/timezone.sh b/.profile.d/timezone.sh index 6d4387b..2a00e86 100644 --- a/.profile.d/timezone.sh +++ b/.profile.d/timezone.sh @@ -3,3 +3,10 @@ unset TZ if [[ $- == *i* && -n ${TZ} ]] ; then echo "Timezone now set to $TZ" fi + +date() { + if [[ $# -eq 0 ]] ; then + set -- "+%a %d %b %Y %T %Z %z" + fi + command date "$@" +}