mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-20 05:20:52 +02:00
updated code comments and fixed checkApiError legacy calls
This commit is contained in:
@@ -717,6 +717,12 @@ const utils = {
|
||||
return date.toISOString().replace("T", " ");
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns datetime formatted string (YYYY-MM-DD HH:mm:ss.nnn) in the local timezone.
|
||||
*
|
||||
* @param {string|number|Date} strOrDate
|
||||
* @return {string}
|
||||
*/
|
||||
toLocalDatetime(strOrDate) {
|
||||
if (!strOrDate) {
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user