Skip to content

Commit

Permalink
Merge pull request #297 from observerly/fix/telescope/SetUTCDate
Browse files Browse the repository at this point in the history
fix: ensure DateTime strings are not double-encased in telescope.SetUTCDate() method in @observerly/alpacago
  • Loading branch information
michealroberts authored Jan 3, 2025
2 parents 22dd008 + 94f942d commit 3f85847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/alpacago/telescope.go
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ func (t *Telescope) SetUTCDate(UTCDate time.Time) error {
date := UTCDate.Format("2006-01-02T15:04:05.000000000Z")

var form map[string]string = map[string]string{
"UTCDate": fmt.Sprintf("%q", date),
"UTCDate": date,
"ClientID": fmt.Sprintf("%d", t.Alpaca.ClientId),
"ClientTransactionID": fmt.Sprintf("%d", t.Alpaca.TransactionId),
}
Expand Down

0 comments on commit 3f85847

Please sign in to comment.