diff --git a/libozsh.zsh b/libozsh.zsh index bf4e4ab..517f304 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -55,7 +55,7 @@ function ozsh_update { } function ozsh_autoupdate { - local timediff=$(( ( $(strftime -r %Y-%m-%d $(date +%Y-%m-%d)) - $(strftime -r %Y-%m-%d $(cat $OZSH_LASTUPDATE_FILE)) ) / 86400 )) + local timediff=$(( ( $(date +%s) - $(cat $OZSH_LASTUPDATE_FILE) ) / 86400 )) if [ "$timediff" -ge "7" ]; then vared -p 'Would you like to update ozsh? [y/N]: ' -c answer