fixed date-time_today widget broken after last commit

This commit is contained in:
Ralf Becker 2014-10-01 04:40:19 +00:00
parent 6ee7f3f219
commit c42802beea

View File

@ -811,7 +811,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM],
switch(this._type) {
case "date-time_today":
// Today - just the time
if(this.date.toDateString() == new Date().toDateString())
if(date('Y-m-d', this.date) == date('Y-m-d'))
{
display = date(this.egw().preference('timeformat') == '24' ? 'H:i' : 'g:i a', this.date);
}