Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

startOf things should not be endOf things #513

Closed
jeromesimeon opened this issue Jan 15, 2019 · 1 comment
Closed

startOf things should not be endOf things #513

jeromesimeon opened this issue Jan 15, 2019 · 1 comment
Assignees
Labels
Type: Bug 🐛 Something isn't working

Comments

@jeromesimeon
Copy link
Member

~time.startOf is actually returning the ~time.endOf result:

clause init ( request : Request ) : TestResponse {
    let date : DateTime = dateTime("2018-01-01T12:00:00.000Z");
    set state AccordContractState { stateId: "1" };
    return TestResponse{
      startOfDay: startOf(date, "days"),
      endOfDay: endOf(date, "days")
    }
  }

Returns:

"response": {
  "startOfDay": "2018-01-01T23:59:59.999Z",
  "endOfDay": "2018-01-01T23:59:59.999Z",
  "$class": "com.bp3.clause.test.startOfError.TestResponse"
 },
@jeromesimeon jeromesimeon added the Type: Bug 🐛 Something isn't working label Jan 15, 2019
@jeromesimeon jeromesimeon self-assigned this Jan 15, 2019
@jeromesimeon
Copy link
Member Author

Fixed in #514, further improvements to TZ support still need to happen, see #515

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant