Skip to content

Commit 5a5748f

Browse files
authored
Merge pull request #1236 from JuliaSprenger/fix/1235
[NixIO] use OS independent datetime formatting
2 parents 8d5d188 + 2eb011a commit 5a5748f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/io/nixio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def write_block(self, block, use_obj_names=False):
630630
metadata["neo_name"] = neoname
631631
nixblock.definition = block.description
632632
if block.rec_datetime:
633-
nix_rec_dt = int(block.rec_datetime.strftime("%s"))
633+
nix_rec_dt = int(block.rec_datetime.timestamp())
634634
nixblock.force_created_at(nix_rec_dt)
635635
if block.file_datetime:
636636
fdt, annotype = dt_to_nix(block.file_datetime)

0 commit comments

Comments
 (0)