OcLib
This commit is contained in:
@@ -84,7 +84,7 @@ func generate(request *tools.APIRequest, shallow bool) (*Planner, error) {
|
||||
|
||||
end := bk.ExpectedEndDate
|
||||
if end == nil {
|
||||
e := bk.ExpectedStartDate.Add(time.Hour)
|
||||
e := bk.ExpectedStartDate.UTC().Add(time.Hour)
|
||||
end = &e
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ func (wfa *WorkflowExecution) Equals(we *WorkflowExecution) bool {
|
||||
func (ws *WorkflowExecution) PurgeDraft(request *tools.APIRequest) error {
|
||||
if ws.EndDate == nil {
|
||||
// if no end... then Book like a savage
|
||||
e := ws.ExecDate.Add(time.Hour)
|
||||
e := ws.ExecDate.UTC().Add(time.Hour)
|
||||
ws.EndDate = &e
|
||||
}
|
||||
accessor := ws.GetAccessor(request)
|
||||
|
||||
Reference in New Issue
Block a user