Open rotdrop opened 3 years ago
A work-around, but "native" support would be nicer (need to check about the +/- with the offset):
array_walk_recursive($this->backend->VarRef, function(&$value, $key) {
if ($value instanceof \DateTimeInterface) {
$stamp = $value->getTimestamp();
$stamp -= $value->getOffset();
$value = $stamp;
}
});
Is there support for time-zones for date-time formatting? Nice-to-have would also the support of the DateTimeInterface of PHP, which then would come with its builtin timezones.
Of course, I always can do $date->timeStamp(), but then: how do I pass the timezone to OpenTBS?
Thanks