From 94f942d29100126592307a40fc60bcf72f8184de Mon Sep 17 00:00:00 2001 From: michealroberts Date: Tue, 22 Oct 2024 20:35:30 +0100 Subject: [PATCH] fix: ensure DateTime strings are not double-encased in telescope.SetUTCDate() method in @observerly/alpacago fix: ensure DateTime strings are not double-encased in telescope.SetUTCDate() method in @observerly/alpacago --- pkg/alpacago/telescope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/alpacago/telescope.go b/pkg/alpacago/telescope.go index 412a830..fc42830 100644 --- a/pkg/alpacago/telescope.go +++ b/pkg/alpacago/telescope.go @@ -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), }