summaryrefslogtreecommitdiff
path: root/internal/api/trello.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/trello.go')
-rw-r--r--internal/api/trello.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/api/trello.go b/internal/api/trello.go
index a276726..1a5642c 100644
--- a/internal/api/trello.go
+++ b/internal/api/trello.go
@@ -125,7 +125,8 @@ func (c *TrelloClient) GetCards(ctx context.Context, boardID string) ([]models.C
if apiCard.Due != nil && *apiCard.Due != "" {
if dueDate, err := time.Parse(time.RFC3339, *apiCard.Due); err == nil {
- card.DueDate = &dueDate
+ dueInTZ := config.ToDisplayTZ(dueDate)
+ card.DueDate = &dueInTZ
}
}
@@ -267,7 +268,8 @@ func (c *TrelloClient) CreateCard(ctx context.Context, listID, name, description
if apiCard.Due != nil && *apiCard.Due != "" {
if parsedDate, err := time.Parse(time.RFC3339, *apiCard.Due); err == nil {
- card.DueDate = &parsedDate
+ dueInTZ := config.ToDisplayTZ(parsedDate)
+ card.DueDate = &dueInTZ
}
}