refactor(habits): make PerformedOn datetime format explicit

Amolith created

Explicitly set the `PerformedOn` field's datetime validation format
in `TrackHabitActivityRequest` to `2006-01-02T15:04:05Z07:00` (RFC3339).

This change replaces the generic `datetime` validator tag to improve
code clarity and ensure the expected input format is self-documenting.
It assumes the previous default validation behavior was already RFC3339,
so no functional change to validation logic is intended.

Change summary

lunatask/habits.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lunatask/habits.go 🔗

@@ -19,7 +19,7 @@ import (
 
 // TrackHabitActivityRequest represents the request to track a habit activity
 type TrackHabitActivityRequest struct {
-	PerformedOn string `json:"performed_on" validate:"required,datetime"`
+	PerformedOn string `json:"performed_on" validate:"required,datetime=2006-01-02T15:04:05Z07:00"`
 }
 
 // TrackHabitActivityResponse represents the response from Lunatask API when tracking a habit activity