Skip to content

Commit

Permalink
Get date and format for UTC (matches jupyter server)
Browse files Browse the repository at this point in the history
  • Loading branch information
halleysfifthinc committed Jan 13, 2025
1 parent bcf8553 commit 8b56a0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IJulia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export notebook, jupyterlab, installkernel
using ZMQ, JSON, SoftGlobalScope
import Base.invokelatest
import Dates
using Dates: now
using Dates: now, format, @dateformat_str, UTC, ISODateTimeFormat
import Random
using Base64: Base64EncodePipe
import REPL
Expand Down
2 changes: 1 addition & 1 deletion src/msg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
msg_header(m::Msg, msg_type::String) = Dict("msg_id" => uuid4(),
"username" => m.header["username"],
"session" => m.header["session"],
"date" => now(),
"date" => format(now(UTC), ISODateTimeFormat)*"Z",
"msg_type" => msg_type,
"version" => "5.4")

Expand Down

0 comments on commit 8b56a0c

Please sign in to comment.