Skip to content

Commit 59d6e20

Browse files
authored
Fix incorrect return of DateTime object in _translate_start_time_ns (#103)
* fixed incorrect return of DateTime object in _translate_start_time_ns * removed weird characters introduced by terminal editor
1 parent f3642fb commit 59d6e20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ function wait_until_done(ctx::Context, txn::JSON3.Object; start_time_ns = nothin
7878
wait_until_done(ctx, transaction_id(txn); start_time_ns)
7979
end
8080
function _transaction_start_time_ns(txn::JSON3.Object)
81-
unix_ms = txn[:created_on] ÷ 1000
82-
Dates.unix2datetime(unix_ms)
81+
return txn[:created_on] ÷ 1_000_000_000
8382
end
8483
function wait_until_done(ctx::Context, id::AbstractString; start_time_ns = nothing)
8584
# If the user is calling this manually, read the start time from the transaction object.

0 commit comments

Comments
 (0)