https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24455 --- Comment #44 from Agustín Moyano <agustinmoyano@theke.io> --- (In reply to Martin Renvoize from comment #40)
Examples on things that need clarifying..
1) Is the intention to always pass in a 'String' (and if so, of what format) to the new $date, $datetime and $time window functions.. or are you deliberately allow Date prototypes to be passed?
It was designed to transform dates from the api, so input is always RFC3339
2) You allow to pass in a timezone in the options, but the string value may also include an offset if it's a RFC3339 so how are the two being ratified..?
For example, if you pass the following value '2020-03-18T07:00:00-03:00' and you set the timezone for an equivalent of +03:00 the result of calling $datetime should be '2020-03-18T13:00:00+03:00' each one being equivalent to '2020-03-18T10:00:00Z' -- You are receiving this mail because: You are watching all bug changes.