From c0de7d8d48af0ce1a69bc4133464eebd3d6937a4 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 23 Jan 2020 18:37:09 -0300 Subject: [PATCH] bugcito --- app/views/posts/attributes/_date.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/attributes/_date.haml b/app/views/posts/attributes/_date.haml index ac1c7b0..392b6b9 100644 --- a/app/views/posts/attributes/_date.haml +++ b/app/views/posts/attributes/_date.haml @@ -1,6 +1,6 @@ .form-group = label_tag "post_#{attribute}", post_label_t(attribute, post: post) - = date_field 'post', attribute, value: metadata.value.strftime('%F'), + = date_field 'post', attribute, value: metadata.value.to_date.strftime('%F'), **field_options(attribute, metadata) = render 'posts/attribute_feedback', post: post, attribute: attribute, metadata: metadata