Improve Transactions handling #28

Merged
jacob1123 merged 10 commits from transactions into master 2022-02-28 14:28:39 +01:00
Showing only changes of commit 7dfbef60a4 - Show all commits

View File

@ -3,6 +3,8 @@ const props = defineProps(["modelValue"]);
const emit = defineEmits(['update:modelValue']);
function dateToYYYYMMDD(d: Date) : string {
if(d == null)
return "";
// alternative implementations in https://stackoverflow.com/q/23593052/1850609
//return new Date(d.getTime() - (d.getTimezoneOffset() * 60 * 1000)).toISOString().split('T')[0];
return d.toISOString().split('T')[0];