X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=time.php;h=be2763e58cf57a71cd0829a92cc23d41abb22b69;hb=7dcbcb707e35c41d11266db7243416f86686dd79;hp=cb9e7a81e55eb5adce01a902a6567440e1556207;hpb=c84327eb5f13ebd2af0792adbdfb35cfb1a3eca5;p=wfpl.git diff --git a/time.php b/time.php index cb9e7a8..be2763e 100644 --- a/time.php +++ b/time.php @@ -113,7 +113,7 @@ function ymd_clean($date) { switch(count($parts)) { case 1: $year = $parts[0]; - if(strlen($year) == 0) { + if(strlen($year) == 0 || $year < 1971 || $year > 2050) { list($year, $month, $day) = explode('-', date('Y-m-d')); } else { list($month, $day) = explode('-', date('m-d'));