mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
handle expired license
This commit is contained in:
@@ -500,3 +500,12 @@ export function extractErrorLogData(err, additionalFields = {}) {
|
||||
...additionalFields,
|
||||
};
|
||||
}
|
||||
|
||||
export function safeFormatDate(date) {
|
||||
try {
|
||||
const v = new Date(date);
|
||||
return v.toISOString().substring(0, 10);
|
||||
} catch (e) {
|
||||
return date?.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user