Paul Grimes
ok200paul.bsky.social
Paul Grimes
@ok200paul.bsky.social
I run OK200, a software and app development company in Melbourne, Australia
*bool
March 1, 2025 at 7:54 AM
I’ve just switched mine off for the day :) Nah, the scope was fine; the code I pasted wasn’t what was actually used. I needed to reinterpret the variable using a logical OR prior to passing it to the function, so it wasn’t interpreted as a book.

Got it working, but wasted too much time on it 🫠
March 1, 2025 at 7:53 AM
It returns index of 0, which is correct - passing the result of the findIndex (0) into a function is where javascript acts like an ass - it interprets it as false
March 1, 2025 at 7:35 AM
You’re all right. UTC always for the win; always use and convert to UTC before committing.

However: pick timestamp over datetime field types when setting up the DB, is what I learned. Your field type choice matters!
February 13, 2025 at 1:43 PM
True, agreed - but - inserting a value into a `datetime` field, if another application connects to the DB and attempts to apply timezone offsets to the inserted data based on its own timezone configuration, the offset won't get applied to the datetime fields, only the timestamp fields. Interesting
February 12, 2025 at 1:44 AM
Hope this helps another dev out there!
February 11, 2025 at 10:21 PM
I managed to lose a wordy issue submission 😭 - note to self, write it in a text editor first!
January 9, 2025 at 2:01 AM
Ah - thanks Bron! It's usually something I'm doing too - glad it's not me :)
January 9, 2025 at 1:56 AM
Anyone out there start their programming on either of these two machines? Might be mainly folks based in Europe back in the mid 80s :)
January 2, 2025 at 12:14 AM