hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

Add `awsproviderlint` check to prefer RFC 3339 dates #13708

Closed gdavison closed 1 year ago

gdavison commented 4 years ago

Community Note

Description

Add a check for RFC 3339 date formatting in attribute values

Flagged Provider Code

var createdDate time.Time
...
d.Set("created_date", createdDate.String())
var createdDate time.Time
...
d.Set("created_date", Format(time.ANSIC))

Passing Provider Code

var createdDate time.Time
...
d.Set("created_date", createdDate.Format(time.RFC3339))
github-actions[bot] commented 1 year ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.