Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Possible bug in Date handling #168

@codylerum

Description

@codylerum

While looking at #167 I was poking around what it would take to convert all the old java.util.Date returns over to java.time.Instant which would more accurately reflect the epoch seconds being returned and I noticed this

https://github.com/hellosign/hellosign-java-sdk/blob/master/src/main/java/com/hellosign/sdk/resource/AbstractResource.java#L69

All the API return values appears to be epochSecods but this here is using https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html#getTime() which returns epoch milliseconds.

However I could not find any cases where a date was being set so it's unclear if this ever gets used. I'm curious however what hellosign expects if a date value is sent. Seconds or milliseconds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions