We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5082a commit 4263232Copy full SHA for 4263232
berry/mysql/MySQLDataReader.php
@@ -94,10 +94,21 @@ public function getValue(int $index)
94
*/
95
public function getDateTime(int $index, DateTimeZone $timeZone): DateTime
96
{
97
- $dt = new DateTime($this->fReadValues[$index]);
+ $dt = new DateTime($this->fReadValues[$index], new DateTimeZone('UTC'));
98
$dt->setTimezone($timeZone);
99
return $dt;
100
}
101
+
102
+ /**
103
+ * Return the read datetime value
104
+ * @param int $index
105
+ * @return DateTimeF
106
+ */
107
+ public function getDateTimeUTC(int $index): DateTime
108
+ {
109
+ $dt = new DateTime($this->fReadValues[$index]);
110
+ return $dt;
111
+ }
112
113
114
?>
0 commit comments