Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated strftime date format support #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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