mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 23:16:54 +00:00
common: remove SimpleTimeFormat const for time package layout const DateTime (#1246)
* switch over to package defined const for time layout * bump appveyor playa * bumperino to latest while setting patherino * whoooops * bump VS version set GOROOT * puge build cache * Revert "puge build cache" This reverts commit 315bb578afc19529457f435e52af2172f5143bc5. * bumperino to test * purge setting of golang directory for version and allow default * purge cache state when file change * whoops * thrasher: nits * don't need to flusherino the cacherino --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
@@ -1015,7 +1015,7 @@ func (m *DataHistoryManager) validateCandles(job *DataHistoryJob, exch exchange.
|
||||
apiCandles.Candles[i] = can
|
||||
|
||||
if len(candleIssues) > 0 {
|
||||
candleIssues = append([]string{fmt.Sprintf("issues found at %v", can.Time.Format(common.SimpleTimeFormat))}, candleIssues...)
|
||||
candleIssues = append([]string{fmt.Sprintf("issues found at %v", can.Time.Format(time.DateTime))}, candleIssues...)
|
||||
validationIssues = append(validationIssues, candleIssues...)
|
||||
r.Status = dataHistoryStatusFailed
|
||||
apiCandles.Candles[i].ValidationIssues = strings.Join(candleIssues, ", ")
|
||||
|
||||
@@ -3921,11 +3921,11 @@ func (s *RPCServer) GetDataHistoryJobDetails(_ context.Context, r *gctrpc.GetDat
|
||||
for _, v := range result.Results {
|
||||
for i := range v {
|
||||
jobResults = append(jobResults, &gctrpc.DataHistoryJobResult{
|
||||
StartDate: v[i].IntervalStartDate.Format(common.SimpleTimeFormat),
|
||||
EndDate: v[i].IntervalEndDate.Format(common.SimpleTimeFormat),
|
||||
StartDate: v[i].IntervalStartDate.Format(time.DateTime),
|
||||
EndDate: v[i].IntervalEndDate.Format(time.DateTime),
|
||||
HasData: v[i].Status == dataHistoryStatusComplete,
|
||||
Message: v[i].Result,
|
||||
RunDate: v[i].Date.Format(common.SimpleTimeFormat),
|
||||
RunDate: v[i].Date.Format(time.DateTime),
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -3941,8 +3941,8 @@ func (s *RPCServer) GetDataHistoryJobDetails(_ context.Context, r *gctrpc.GetDat
|
||||
Base: result.Pair.Base.String(),
|
||||
Quote: result.Pair.Quote.String(),
|
||||
},
|
||||
StartDate: result.StartDate.Format(common.SimpleTimeFormat),
|
||||
EndDate: result.EndDate.Format(common.SimpleTimeFormat),
|
||||
StartDate: result.StartDate.Format(time.DateTime),
|
||||
EndDate: result.EndDate.Format(time.DateTime),
|
||||
Interval: int64(result.Interval.Duration()),
|
||||
RequestSizeLimit: result.RequestSizeLimit,
|
||||
MaxRetryAttempts: result.MaxRetryAttempts,
|
||||
@@ -3979,8 +3979,8 @@ func (s *RPCServer) GetActiveDataHistoryJobs(_ context.Context, _ *gctrpc.GetInf
|
||||
Base: jobs[i].Pair.Base.String(),
|
||||
Quote: jobs[i].Pair.Quote.String(),
|
||||
},
|
||||
StartDate: jobs[i].StartDate.Format(common.SimpleTimeFormat),
|
||||
EndDate: jobs[i].EndDate.Format(common.SimpleTimeFormat),
|
||||
StartDate: jobs[i].StartDate.Format(time.DateTime),
|
||||
EndDate: jobs[i].EndDate.Format(time.DateTime),
|
||||
Interval: int64(jobs[i].Interval.Duration()),
|
||||
RequestSizeLimit: jobs[i].RequestSizeLimit,
|
||||
MaxRetryAttempts: jobs[i].MaxRetryAttempts,
|
||||
@@ -4033,8 +4033,8 @@ func (s *RPCServer) GetDataHistoryJobsBetween(_ context.Context, r *gctrpc.GetDa
|
||||
Base: jobs[i].Pair.Base.String(),
|
||||
Quote: jobs[i].Pair.Quote.String(),
|
||||
},
|
||||
StartDate: jobs[i].StartDate.Format(common.SimpleTimeFormat),
|
||||
EndDate: jobs[i].EndDate.Format(common.SimpleTimeFormat),
|
||||
StartDate: jobs[i].StartDate.Format(time.DateTime),
|
||||
EndDate: jobs[i].EndDate.Format(time.DateTime),
|
||||
Interval: int64(jobs[i].Interval.Duration()),
|
||||
RequestSizeLimit: jobs[i].RequestSizeLimit,
|
||||
MaxRetryAttempts: jobs[i].MaxRetryAttempts,
|
||||
@@ -4076,8 +4076,8 @@ func (s *RPCServer) GetDataHistoryJobSummary(_ context.Context, r *gctrpc.GetDat
|
||||
Base: job.Pair.Base.String(),
|
||||
Quote: job.Pair.Quote.String(),
|
||||
},
|
||||
StartDate: job.StartDate.Format(common.SimpleTimeFormat),
|
||||
EndDate: job.EndDate.Format(common.SimpleTimeFormat),
|
||||
StartDate: job.StartDate.Format(time.DateTime),
|
||||
EndDate: job.EndDate.Format(time.DateTime),
|
||||
Interval: int64(job.Interval.Duration()),
|
||||
Status: job.Status.String(),
|
||||
DataType: job.DataType.String(),
|
||||
|
||||
Reference in New Issue
Block a user