* improved: when calling `Client::multicall()`, the returned `Response` objects did not have any data in their `httpResponse`
+* new: method `Helper\Date::iso8601Encode` now accepts a DateTime input beside a timestamp
+
* improved: added the library version number to the debugger title line
* improved: made sure the test container has at least one locale with comma as decimal separator
* This routine always encodes to local time unless $utc is set to 1, in which case UTC output is produced and an
* adjustment for the local timezone's offset is made
*
- * @param int $timet (timestamp)
+ * @param int|\DateTimeInterface $timet timestamp or datetime
* @param bool|int $utc (0 or 1)
* @return string
*/
public static function iso8601Encode($timet, $utc = 0)
{
+ if (is_a($timet, 'DateTimeInterface') || is_a($timet, 'DateTime')) {
+ $timet = $timet->getTimestamp();
+ }
if (!$utc) {
$t = date('Ymd\TH:i:s', $timet);
} else {