Skip to content
This repository
Browse code

Applying patch from 'slywalker'. Updating datetime generation in bake…

…d files.

Fixed #6505

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8229 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit f712d84d33fd6914e12ddf19daeffb19fbc65108 1 parent 44fa8d5
Mark Story authored
2  cake/console/libs/schema.php
@@ -199,7 +199,7 @@ function dump() {
199 199
 			}
200 200
 		}
201 201
 		$db =& ConnectionManager::getDataSource($this->Schema->connection);
202  
-		$contents = "#". $Schema->name ." sql generated on: " . date('Y-m-d H:m:s') . " : ". time()."\n\n";
  202
+		$contents = "#". $Schema->name ." sql generated on: " . date('Y-m-d H:i:s') . " : ". time()."\n\n";
203 203
 		$contents .= $db->dropSchema($Schema) . "\n\n". $db->createSchema($Schema);
204 204
 		if ($write) {
205 205
 			if (strpos($write, '.sql') === false) {
2  cake/console/libs/tasks/controller.php
@@ -484,7 +484,7 @@ function bakeTest($className) {
484 484
 		$this->out("\nBaking unit test for $className...");
485 485
 
486 486
 		$header = '$Id';
487  
-		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $className ."Controller Test cases generated on: " . date('Y-m-d H:m:s') . " : ". time() . "*/\n{$out}?>";
  487
+		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $className ."Controller Test cases generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
488 488
 		return $this->createFile($path . $filename, $content);
489 489
 	}
490 490
 /**
4  cake/console/libs/tasks/model.php
@@ -733,7 +733,7 @@ function bakeTest($className, $useTable = null, $associations = array()) {
733 733
 			$this->out("\nBaking unit test for $className...");
734 734
 
735 735
 			$header = '$Id';
736  
-			$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $className ." Test cases generated on: " . date('Y-m-d H:m:s') . " : ". time() . "*/\n{$out}?>";
  736
+			$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $className ." Test cases generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
737 737
 			return $this->createFile($path . $filename, $content);
738 738
 		}
739 739
 		return false;
@@ -927,7 +927,7 @@ function fixture($model, $useTable = null) {
927 927
 		}
928 928
 		$filename = Inflector::underscore($model).'_fixture.php';
929 929
 		$header = '$Id';
930  
-		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $model ." Fixture generated on: " . date('Y-m-d H:m:s') . " : ". time() . "*/\n{$out}?>";
  930
+		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $model ." Fixture generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
931 931
 		$this->out("\nBaking test fixture for $model...");
932 932
 		if ($this->createFile($path . $filename, $content)) {
933 933
 			return str_replace("\t\t", "\t\t\t", $records);
2  cake/console/libs/tasks/test.php
@@ -181,7 +181,7 @@ function bake($class, $name = null, $cases = array()) {
181 181
 		}
182 182
 
183 183
 		$header = '$Id';
184  
-		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $name ." Test cases generated on: " . date('Y-m-d H:m:s') . " : ". time() . "*/\n{$out}?>";
  184
+		$content = "<?php \n/* SVN FILE: $header$ */\n/* ". $name ." Test cases generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
185 185
 		return $this->createFile($this->filePath . Inflector::underscore($name) . '.test.php', $content);
186 186
 	}
187 187
 /**

0 notes on commit f712d84

Please sign in to comment.
Something went wrong with that request. Please try again.