From 85d0de09654b6a4a232a9a8b15eb02e27b5d1837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSachin?= Date: Wed, 5 Apr 2023 12:46:50 +0530 Subject: [PATCH] Fixed: Table name create correctly while backup --- script.tjfields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.tjfields.php b/script.tjfields.php index eb3c6137..26ef6d5c 100755 --- a/script.tjfields.php +++ b/script.tjfields.php @@ -883,7 +883,7 @@ public function renameTable($table, $newTable) { $db = Factory::getDBO(); - $newTable = $newTable . '_' . date('d-m-Y_H:m:s'); + $newTable = $newTable . '_' . date('Y_m_d_H_i_s'); $query = "RENAME TABLE `" . $table . "` TO `" . $newTable . "`"; $db->setQuery($query);