mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 12:04:05 +01:00
fixed date-time_today widget broken after last commit
This commit is contained in:
parent
98d6b45be2
commit
2d0d1916c6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user