aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_unit.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-18 10:58:53 +0000
committermistic100 <mistic@piwigo.org>2014-05-18 10:58:53 +0000
commit97ffdb2edc14c12502f75efef9622cecd89a3020 (patch)
tree942c99b9493aaf6a73092b89d87ce725e660dfe7 /admin/batch_manager_unit.php
parent914b6d96d2cae67507ef848a7a229fd5319d7968 (diff)
feature 2679 : allow to change creation time
git-svn-id: http://piwigo.org/svn/trunk@28500 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_unit.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php
index 068182050..bbbe4810c 100644
--- a/admin/batch_manager_unit.php
+++ b/admin/batch_manager_unit.php
@@ -78,15 +78,7 @@ SELECT id, date_creation
if (!empty($_POST['date_creation-'.$row['id']]))
{
- if (!empty($row['date_creation']))
- {
- list(, $time) = explode(' ', $row['date_creation']);
- }
- else
- {
- $time = '00:00:00';
- }
- $data['date_creation'] = $_POST['date_creation-'.$row['id']].' '.$time;
+ $data['date_creation'] = $_POST['date_creation-'.$row['id']];
}
else
{
@@ -222,16 +214,6 @@ SELECT *
$src_image = new SrcImage($row);
- // creation date
- if (!empty($row['date_creation']))
- {
- list($date) = explode(' ', $row['date_creation']);
- }
- else
- {
- $date = '';
- }
-
$query = '
SELECT
id,
@@ -260,7 +242,7 @@ SELECT
'AUTHOR' => htmlspecialchars(@$row['author']),
'LEVEL' => !empty($row['level'])?$row['level']:'0',
'DESCRIPTION' => htmlspecialchars(@$row['comment']),
- 'DATE_CREATION' => $date,
+ 'DATE_CREATION' => $row['date_creation'],
'TAGS' => $tag_selection,
)
));