File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -56,29 +56,6 @@ class Date extends \DateTime
5656 */
5757 public static $ format = 'Y-m-d H:i:s ' ;
5858
59- /**
60- * Placeholder for a \DateTimeZone object with GMT as the time zone.
61- *
62- * @var object
63- * @since 1.7.0
64- *
65- * @deprecated 4.0 will be removed in 6.0
66- * Will be removed without replacement
67- */
68- protected static $ gmt ;
69-
70- /**
71- * Placeholder for a \DateTimeZone object with the default server
72- * time zone as the time zone.
73- *
74- * @var object
75- * @since 1.7.0
76- *
77- * @deprecated 4.0 will be removed in 6.0
78- * Will be removed without replacement
79- */
80- protected static $ stz ;
81-
8259 /**
8360 * The \DateTimeZone object for usage in rending dates as strings.
8461 *
@@ -97,13 +74,6 @@ class Date extends \DateTime
9774 */
9875 public function __construct ($ date = 'now ' , $ tz = null )
9976 {
100- // Create the base GMT and server time zone objects.
101- if (empty (self ::$ gmt ) || empty (self ::$ stz )) {
102- // @TODO: This code block stays here only for B/C, can be removed in 5.0
103- self ::$ gmt = new \DateTimeZone ('UTC ' );
104- self ::$ stz = new \DateTimeZone (@date_default_timezone_get ());
105- }
106-
10777 // If the time zone object is not set, attempt to build it.
10878 if (!($ tz instanceof \DateTimeZone)) {
10979 if (\is_string ($ tz )) {
You can’t perform that action at this time.
0 commit comments