[fix] add date into legacy support for js globals
This commit is contained in:
parent
26638a9a83
commit
1dee1a9369
1 changed files with 6 additions and 0 deletions
|
|
@ -163,6 +163,12 @@ Object.defineProperties(window, {
|
|||
return frappe.datetime;
|
||||
}
|
||||
},
|
||||
'date': {
|
||||
get: function() {
|
||||
console.warn('Please use `frappe.datetime` instead of `date`. It will be deprecated soon.');
|
||||
return frappe.datetime;
|
||||
}
|
||||
},
|
||||
'get_today': {
|
||||
get: function() {
|
||||
console.warn('Please use `frappe.datetime.get_today` instead of `get_today`. It will be deprecated soon.');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue