fixed some bugs, dark/white mode fix and sessionid in url
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export function formatDate(date: string): string {
|
||||
if (date == "") {
|
||||
return "No date";
|
||||
}
|
||||
var d = new Date(date);
|
||||
return pad(d.getDate()) + "-" + pad(d.getMonth() + 1) + "-" + d.getFullYear() + " " + pad(d.getHours()) + ":" + pad(d.getMinutes());
|
||||
}
|
||||
|
||||
function pad(value: number): string {
|
||||
var strVal = value.toString();
|
||||
|
||||
return strVal.length > 1 ? strVal : "0" + strVal;
|
||||
}
|
||||
Reference in New Issue
Block a user