Subj : "Packet Type 2 Compatible Formats" (Ex FSP-1040)
To   : Rob Swindell
From : Maurice Kinal
Date : Sat Feb 13 2021 11:12 pm

-={ 2021-02-13 23:12:21.152375887+00:00 }=-

Hey Rob!

RS> It's not uncommon for January to represented as a 0.

You're making my point, as your example with JavaScript demonstrates.  It is derived from c's time.h.

RS> it uses localtime()

A time.h function along with gmtime() and strftime().  I'd be surprised if those functions weren't included in JavaScript given localtime().

RS> to convert the stored time_t to a struct tm and then I use sprintf
RS> to format into the standard DateTime field syntax.

strftime() works just as well, even replicating two digit year formats such as the packed message header's DateTime string.  As simple as using '%d %b %y  %T' in the specifier field of the strftime() call, including using the c89 standards.  However I believe '%F %T %z' to be the superior output for a packed meassage DateTime string.

RS> You could sum up the vast majority of FidoNet in those two
RS> words: "poorly designed".

Probably.  I believe having these types of conversations in public has the potential towards solving that flaw.

RS> I guess we shouldn't really have expected more from technology
RS> developed by amateurs.

Speak for yourself.  I do expect more.  Both from them, whoever them are, as well as myself.  That has always been my motivation for participating in this fine and honourable echoarea.

Life is good,
Maurice

... Fus sceal feran, fæge sweltan.
   Those who are ready must go, the doomed die.
--- GNU bash, version 5.1.4(1)-release (x86_64-motorshed-linux-gnu)
* Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)