fixed date-time_today widget broken after last commit

This commit is contained in:
Ralf Becker 2014-10-01 04:40:54 +00:00
parent 98d6b45be2
commit 2d0d1916c6

View File

@ -811,7 +811,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM],
switch(this._type) { switch(this._type) {
case "date-time_today": case "date-time_today":
// Today - just the time // 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); display = date(this.egw().preference('timeformat') == '24' ? 'H:i' : 'g:i a', this.date);
} }