Skip to content

Commit

Permalink
fix: ensure DateTime strings are not double-encased in telescope.SetU…
Browse files Browse the repository at this point in the history
…TCDate() method in @observerly/alpacago

fix: ensure DateTime strings are not double-encased in telescope.SetUTCDate() method in @observerly/alpacago
  • Loading branch information
michealroberts committed Oct 22, 2024
1 parent 4d334d0 commit 15cb4c1
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 @@ -1121,7 +1121,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 15cb4c1

Please sign in to comment.