From 200a4c077b9f19155a572bfd06c46c72611c1321 Mon Sep 17 00:00:00 2001 From: mp3butcher Date: Sun, 4 Feb 2024 04:24:48 +0100 Subject: [PATCH] remove deprecated strftime date format support --- generator/lib/builder/om/ExtensionQueryBuilder.php | 2 +- generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php | 2 +- generator/lib/builder/om/PHP5ExtensionNodeBuilder.php | 2 +- generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php | 2 +- generator/lib/builder/om/PHP5ExtensionObjectBuilder.php | 2 +- generator/lib/builder/om/PHP5ExtensionPeerBuilder.php | 2 +- generator/lib/builder/om/PHP5InterfaceBuilder.php | 2 +- generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php | 2 +- generator/lib/builder/om/PHP5NestedSetBuilder.php | 2 +- generator/lib/builder/om/PHP5NestedSetPeerBuilder.php | 2 +- generator/lib/builder/om/PHP5NodeBuilder.php | 2 +- generator/lib/builder/om/PHP5NodePeerBuilder.php | 2 +- generator/lib/builder/om/PHP5ObjectBuilder.php | 4 ++-- generator/lib/builder/om/PHP5PeerBuilder.php | 2 +- generator/lib/builder/om/PHP5TableMapBuilder.php | 2 +- generator/lib/builder/om/QueryBuilder.php | 2 +- generator/lib/builder/om/QueryInheritanceBuilder.php | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/generator/lib/builder/om/ExtensionQueryBuilder.php b/generator/lib/builder/om/ExtensionQueryBuilder.php index da103aa94..1fa44493d 100644 --- a/generator/lib/builder/om/ExtensionQueryBuilder.php +++ b/generator/lib/builder/om/ExtensionQueryBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php b/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php index 0c9432c4c..cafe89940 100644 --- a/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php +++ b/generator/lib/builder/om/ExtensionQueryInheritanceBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php b/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php index 58f6ab4ed..3e64b9f5d 100644 --- a/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php +++ b/generator/lib/builder/om/PHP5ExtensionNodeBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php b/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php index da8cd17a6..34ec01a32 100644 --- a/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php +++ b/generator/lib/builder/om/PHP5ExtensionNodePeerBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php b/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php index 9161c1a8d..b635d195a 100644 --- a/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php +++ b/generator/lib/builder/om/PHP5ExtensionObjectBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php b/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php index 3a72e12e0..0b63c7d6b 100644 --- a/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php +++ b/generator/lib/builder/om/PHP5ExtensionPeerBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5InterfaceBuilder.php b/generator/lib/builder/om/PHP5InterfaceBuilder.php index 0850b1732..ca93751ea 100644 --- a/generator/lib/builder/om/PHP5InterfaceBuilder.php +++ b/generator/lib/builder/om/PHP5InterfaceBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php b/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php index c861d6d3f..59033f506 100644 --- a/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php +++ b/generator/lib/builder/om/PHP5MultiExtendObjectBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5NestedSetBuilder.php b/generator/lib/builder/om/PHP5NestedSetBuilder.php index 4c2e92c50..254ff4b91 100644 --- a/generator/lib/builder/om/PHP5NestedSetBuilder.php +++ b/generator/lib/builder/om/PHP5NestedSetBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php b/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php index ca6f3d20b..b1f6b5376 100644 --- a/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php +++ b/generator/lib/builder/om/PHP5NestedSetPeerBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5NodeBuilder.php b/generator/lib/builder/om/PHP5NodeBuilder.php index 9d9f8cc7b..16872980f 100644 --- a/generator/lib/builder/om/PHP5NodeBuilder.php +++ b/generator/lib/builder/om/PHP5NodeBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5NodePeerBuilder.php b/generator/lib/builder/om/PHP5NodePeerBuilder.php index b3ab83c81..11c38070d 100644 --- a/generator/lib/builder/om/PHP5NodePeerBuilder.php +++ b/generator/lib/builder/om/PHP5NodePeerBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5ObjectBuilder.php b/generator/lib/builder/om/PHP5ObjectBuilder.php index 0fd237a2e..fc2616ab3 100644 --- a/generator/lib/builder/om/PHP5ObjectBuilder.php +++ b/generator/lib/builder/om/PHP5ObjectBuilder.php @@ -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: * @@ -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); diff --git a/generator/lib/builder/om/PHP5PeerBuilder.php b/generator/lib/builder/om/PHP5PeerBuilder.php index 4a2effaac..777c75824 100644 --- a/generator/lib/builder/om/PHP5PeerBuilder.php +++ b/generator/lib/builder/om/PHP5PeerBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/PHP5TableMapBuilder.php b/generator/lib/builder/om/PHP5TableMapBuilder.php index ed5a02c26..dc2a6f005 100644 --- a/generator/lib/builder/om/PHP5TableMapBuilder.php +++ b/generator/lib/builder/om/PHP5TableMapBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/QueryBuilder.php b/generator/lib/builder/om/QueryBuilder.php index 7fc80b9b2..00e3d9655 100644 --- a/generator/lib/builder/om/QueryBuilder.php +++ b/generator/lib/builder/om/QueryBuilder.php @@ -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: * diff --git a/generator/lib/builder/om/QueryInheritanceBuilder.php b/generator/lib/builder/om/QueryInheritanceBuilder.php index b2f2a9029..8c120548c 100644 --- a/generator/lib/builder/om/QueryInheritanceBuilder.php +++ b/generator/lib/builder/om/QueryInheritanceBuilder.php @@ -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: *