Skip to content

Commit

Permalink
Use factory fxn for default date
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <lucasoneil@gmail.com>
  • Loading branch information
loneil committed Jun 19, 2024
1 parent f9c8a3f commit 2991824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc-controller/api/authSessions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AuthSessionBase(BaseModel):
response_url: str
presentation_request_msg: Optional[dict] = None
model_config = ConfigDict(populate_by_name=True)
created_at: datetime = Field(default=datetime.now())
created_at: datetime = Field(default_factory=datetime.utcnow)


class AuthSession(AuthSessionBase, UUIDModel):
Expand Down

0 comments on commit 2991824

Please sign in to comment.