- Timestamp:
- 04/29/13 21:50:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/dch/dates.php
r15437 r15456 24 24 $plusoneyear=date("Y-m-d", strtotime($date." +1 year")); 25 25 $minusoneyear=date("Y-m-d", strtotime($date." -1 year")); 26 $today=date("Y-m-d",mktime(-12,0,0,date("m"), date("d"), date("Y"))); 26 if (date("H")>18) 27 $today=date("Y-m-d", mktime(0,0,0,date("m"), date("d"), date("Y"))); 28 else 29 $today=date("Y-m-d",strtotime(date("Y-m-d", mktime(0,0,0,date("m"), date("d"), date("Y")))." -1 day")); 27 30 28 31 printf("<input name='date' type='text' size='10' maxlength='10' value='%s'>\n", $date);
Note:
See TracChangeset
for help on using the changeset viewer.