Skip to content

Commit

Permalink
Fix bad serialization of Date objects
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 28, 2024
1 parent 57ed293 commit c154aaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/s14e-serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ const _serialize = data => {
return;
}
if ( xtypeInt === I_DATE ) {
writeBuffer.push(C_DATE + _serialize(data.getTime()));
writeBuffer.push(C_DATE);
_serialize(data.getTime());
return;
}
// Reference to composite types
Expand Down

0 comments on commit c154aaa

Please sign in to comment.