Changeset 15456


Ignore:
Timestamp:
04/29/13 21:50:34 (12 years ago)
Author:
Daniela Dorner
Message:
fixed tonight-button
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/dates.php

    r15437 r15456  
    2424    $plusoneyear=date("Y-m-d", strtotime($date." +1 year"));
    2525    $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"));
    2730
    2831    printf("<input name='date' type='text' size='10' maxlength='10' value='%s'>\n", $date);
Note: See TracChangeset for help on using the changeset viewer.