Skip to content

Commit

Permalink
remove strftime support
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher committed Feb 4, 2024
1 parent b5de07b commit 1a3ddcd
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"generator/lib"
],
"require": {
"php": "^8.1.2",
"php": ">8.0",
"phing/phing": "~2.4"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/ExtensionQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5ExtensionNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5ExtensionObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5ExtensionPeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5InterfaceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5NestedSetBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5NestedSetPeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5NodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5NodePeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
4 changes: 2 additions & 2 deletions generator/lib/builder/om/PHP5ObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down Expand Up @@ -1019,7 +1019,7 @@ protected function addTemporalAccessorBody(&$script, Column $col)
}
if (strpos(\$format, '%') !== false) {
return strftime(\$format, \$dt->format('U'));
throw new PropelException('strftime format not supported anymore');
}
return \$dt->format(\$format);
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5PeerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5TableMapBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function addClassOpen(&$script)
*
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/QueryInheritanceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function addClassOpen(&$script)
* $tableDesc
*";
if ($this->getBuildProperty('addTimeStamp')) {
$now = strftime('%c');
$now = date("D M j H:i:s Y");
$script .= "
* This class was autogenerated by Propel " . $this->getBuildProperty('version') . " on:
*
Expand Down
4 changes: 2 additions & 2 deletions generator/lib/task/PropelConvertConfTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function main()
// Write resulting PHP data to output file
$outfile = new PhingFile($this->outputDirectory, $this->outputFile);
$output = "<?php\n";
$output .= "// This file generated by Propel " . $phpconf['generator_version'] . " convert-conf target" . ($this->getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . strftime("%c") : '') . "\n";
$output .= "// This file generated by Propel " . $phpconf['generator_version'] . " convert-conf target" . ($this->getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . date("D M j H:i:s Y") : '') . "\n";
$output .= "// from XML runtime conf file " . $this->xmlConfFile->getPath() . "\n";
$output .= "\$conf = ";
$output .= var_export($phpconf, true);
Expand Down Expand Up @@ -152,7 +152,7 @@ public function main()
$phpconfClassmap = $this->getClassMap();
$outfile = new PhingFile($this->outputDirectory, $this->outputClassmapFile);
$output = '<' . '?' . "php\n";
$output .= "// This file generated by Propel " . $phpconf['generator_version'] . " convert-conf target" . ($this->getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . strftime("%c") : '') . "\n";
$output .= "// This file generated by Propel " . $phpconf['generator_version'] . " convert-conf target" . ($this->getGeneratorConfig()->getBuildProperty('addTimestamp') ? " on " . date("D M j H:i:s Y") : '') . "\n";
$output .= "return ";
$output .= var_export($phpconfClassmap, true);
$output .= ";";
Expand Down

0 comments on commit 1a3ddcd

Please sign in to comment.