JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added functions to edit hours in hh:mm and save them in decimal
[wfpl.git] / time.php
index cb9e7a8..be2763e 100644 (file)
--- 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'));