Hi folks,
qdate has a weird behavior :
under postgresql : SELECT CURRENT_TIMESTAMP(0) :
current_timestamp
------------------------
2021-12-02 00:20:02+01
with Nitrogen : Function : TS=qdate:to_string("Y-m-d H:i:s O", ?TZ, {date(), time()})
?PRINT(TS). (with ?TZ == "Europe/Paris")
Nitrogen console :
=INFO REPORT==== 2-Dec-2021::00:19:58.308662 ===
index: Reloaded! (Beam changed.)
=INFO REPORT==== 2-Dec-2021::00:20:17.519826 ===
DEBUG: <0.26233.1>
index:803
"TS"
"2021-12-02 01:20:17 +0100"
Huuu!? One extra hour added to the regular time, why is that??
However, launching an independent Erlang interpreter with "-pa ./lib/qdate/ebin" returns the correct timestamp :
156> qdate:to_string("Y-m-d H:i:sO", "Europe/Paris", {date(), time()}).
"2021-12-02 00:20:50+0100"
Where does this extra hour comes from?
Jean-Yves
--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nitrogenweb/cf4c4ec1-8cfe-4e86-ae11-8e93e752816dn%40googlegroups.com.