venego
venego
Explore posts from servers
TTCTheo's Typesafe Cult
Created by venego on 4/1/2023 in #questions
How do I represent relationships in a sql database?
Does it matter though? Just focus on the point please, even col != '*' is not correct syntax. But that doesn't matter in this context.
3 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
My question is: How do I re-generate the DOM-state of the elements inside the cells?
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
As you can see I regenerated new cells with different heights. but the colors i.e DOM-state; is still the same.
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
Then I want to clear all of that to get to the image one above. i.e all blue elements; i.e clear the "DOM-state".
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
As you see in the image above the cells DOM elements are changed. let's say that their "DOM/VDOM-state" is changed.
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/3/2023 in #questions
How do I redraw DOM elements in a react component?
When I change something in the dom properties in the children i.e cells....
8 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
that is weird
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
oh???
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
i'ts just a coincidence in your case.
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
maybe you're utc 0. I'm in +1.
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
maybe because 30 and 31 difference in months????
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
why are these two different in the hour?
// hours in 0 utc
const accDate = new Date(
date.getFullYear(),
date.getMonth(),
date.getDate(),
date.getHours() + 1,
date.getMinutes(),
date.getSeconds()
);

// hours match local time
const formatDate = (d) => {
const year = d.getFullYear();
const month = d.getMonth() + 1;
const date = d.getDate();
const h = d.getHours();
const m = d.getMinutes();
const s = d.getSeconds();
return `${year}-${month}-${date} ${h}:${m}:${s}`;
};
// hours in 0 utc
const accDate = new Date(
date.getFullYear(),
date.getMonth(),
date.getDate(),
date.getHours() + 1,
date.getMinutes(),
date.getSeconds()
);

// hours match local time
const formatDate = (d) => {
const year = d.getFullYear();
const month = d.getMonth() + 1;
const date = d.getDate();
const h = d.getHours();
const m = d.getMinutes();
const s = d.getSeconds();
return `${year}-${month}-${date} ${h}:${m}:${s}`;
};
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
and why the date is behind by month(before you add 1)?
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
no it's accurate. hmm interesting
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
oh getDate worked thanks. I'll stick to the first one and add an hour
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
unless it's behind by two months and and two days forwards???? idk, this is confusing
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
I just have to deal with the weird m/d/y
30 replies
TTCTheo's Typesafe Cult
Created by venego on 3/1/2023 in #questions
how do I get an iso formated local date that matches my OS's one in js?
30 replies