From af15accd6f41199db7e1b2dba0f297f054097a81 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 31 Oct 2012 11:38:28 +0100 Subject: [PATCH] Using current date as default creation date Closes #4 --- files/lib/acp/form/StyleAddForm.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/lib/acp/form/StyleAddForm.class.php b/files/lib/acp/form/StyleAddForm.class.php index 159bf7702f..e06834b151 100644 --- a/files/lib/acp/form/StyleAddForm.class.php +++ b/files/lib/acp/form/StyleAddForm.class.php @@ -389,6 +389,10 @@ class StyleAddForm extends ACPForm { $i--; } } + + if (empty($_POST)) { + $this->styleDate = date('Y-m-d', TIME_NOW); + } } /** -- 2.20.1