mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 08:25:03 +02:00
got admin index incl. et2_tree and et2_date_ro working
This commit is contained in:
@ -249,7 +249,7 @@ export function date (format, timestamp) {
|
||||
return jsdate.getTime() / 1000 | 0;
|
||||
}
|
||||
};
|
||||
this.date = function (format, timestamp) {
|
||||
window.date = function (format, timestamp) {
|
||||
that = this;
|
||||
jsdate = ((typeof timestamp === 'undefined' ||isNaN(timestamp.valueOf())) ? new Date() : // Not provided
|
||||
(timestamp instanceof Date) ? new Date(timestamp) : // JS Date()
|
||||
@ -257,5 +257,5 @@ export function date (format, timestamp) {
|
||||
);
|
||||
return format.replace(formatChr, formatChrCb);
|
||||
};
|
||||
return this.date(format, timestamp);
|
||||
return window.date(format, timestamp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user