Skip to content

Conversation

@dkhalife
Copy link
Owner

@dkhalife dkhalife commented Mar 1, 2025

  • remove completed date param
  • remove completed date param

Copilot AI review requested due to automatic review settings March 1, 2025 15:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This pull request updates due date handling to adopt RFC3339 (UTC) time format and removes the manual completed date parameter.

  • Change NextDueDate (and DueDate) type from int64 to string in API requests.
  • Update date parsing logic to use time.Parse with RFC3339 and ensure dates are converted to UTC.
  • Remove support for a user-specified completed date in favor of using the current UTC time.

Reviewed Changes

File Description
internal/apis/task.go Changed date parameter types and updated parsing logic to enforce UTC time (RFC3339 format); removed completed date parameter

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

internal/apis/task.go:409

  • [nitpick] Consider updating the error message to specify that the expected format is RFC3339 (e.g. appending '(RFC3339 format)') for clarity.
"error": "Due date must be in UTC format",

@dkhalife dkhalife merged commit 8a4dcc5 into main Mar 1, 2025
4 checks passed
@dkhalife dkhalife deleted the utc branch March 1, 2025 15:25
dkhalife added a commit that referenced this pull request Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants