Skip to content

Commit 8b56a0c

Browse files
Get date and format for UTC (matches jupyter server)
1 parent bcf8553 commit 8b56a0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IJulia.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export notebook, jupyterlab, installkernel
3636
using ZMQ, JSON, SoftGlobalScope
3737
import Base.invokelatest
3838
import Dates
39-
using Dates: now
39+
using Dates: now, format, @dateformat_str, UTC, ISODateTimeFormat
4040
import Random
4141
using Base64: Base64EncodePipe
4242
import REPL

src/msg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818
msg_header(m::Msg, msg_type::String) = Dict("msg_id" => uuid4(),
1919
"username" => m.header["username"],
2020
"session" => m.header["session"],
21-
"date" => now(),
21+
"date" => format(now(UTC), ISODateTimeFormat)*"Z",
2222
"msg_type" => msg_type,
2323
"version" => "5.4")
2424

0 commit comments

Comments
 (0)