rdaum / moor

A system for building shared, programmable, online spaces. Compatible with LambdaMOO.
GNU General Public License v3.0
160 stars 8 forks source link

`ctime()` builtin does not return expected formatting #29

Closed rdaum closed 1 year ago

rdaum commented 1 year ago

LambdaMOO: => "Thu Sep 28 13:53:54 2023 PDT" vs moor: => "Thu, 28 Sep 2023 20:53:39 +0000"

To be compliant with the MOO spec for ctime, this should a) return the timezone descriptor instead of offset and b) use the local timezone, not UTC.

Symptoms are that some internal core functions that parse the ctime don't work:

@shutdown
Do you really want to shut down the server in 2 minutes? [Enter `yes' or `no']
yes
#39:english_time (line 22): Range error
... called from #51:@shutdown (this == #2) (line 31)
(End of traceback)
rdaum commented 1 year ago

Working, though on my system the timezone is only ever returned in UTC, but I think that's a bug in an external dep, not my code.