[#42] Fix using separate container for lifecycles #442

Merged
alexvanin merged 1 commit from mbiryukova/frostfs-s3-gw:feature/lifecycle_container into feature/lifecycle 2024-09-04 19:51:14 +00:00

View file

@ -160,7 +160,7 @@ func checkLifecycleConfiguration(cfg *data.LifecycleConfiguration) error {
return fmt.Errorf("expiration days must be a positive integer: %d", *rule.Expiration.Days)
}
if _, err := time.Parse("2006-01-02T15:04:05.000Z", rule.Expiration.Date); rule.Expiration.Date != "" && err != nil {
if _, err := time.Parse("2006-01-02T15:04:05Z", rule.Expiration.Date); rule.Expiration.Date != "" && err != nil {
return fmt.Errorf("invalid value of expiration date: %s", rule.Expiration.Date)
}
}