Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-13 Thread Pierre
Le 13/09/2021 à 14:06, Andreas Heigl a écrit : Hey What use-case does it serve to allow offsets that are not reflected in the TZDB? Yes there are use cases: * Your TZDB is obsolete, your hardware and OS is obsolete, but the prod is still running (it happens more than you think). * You

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-13 Thread Andreas Heigl
Hey On 13.09.21 13:32, Hans Henrik Bergan wrote: What use-case does that serve? if some country want to change their timezone for whatever reason, to some timezone that didn't exist previously, could happen at any time really I'm well aware that that could happen at any time really. And I'm

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-13 Thread Hans Henrik Bergan
>What use-case does that serve? if some country want to change their timezone for whatever reason, to some timezone that didn't exist previously, could happen at any time really On Mon, 13 Sept 2021 at 13:32, Hans Henrik Bergan wrote: > > What use-case does that serve? > > if some country want

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-12 Thread Andreas Heigl
Hey Benjamin, Hey All On 11.09.21 23:58, Benjamin Morel wrote: Before doing so, shouldn't we discuss whether it makes sense to accept a time-zone offset with seconds, when the granularity seems to be 15 mins? https://en.wikipedia.org/wiki/List_of_UTC_time_offsets — Benjamin No need. Early

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-11 Thread Benjamin Morel
> > >Before doing so, shouldn't we discuss whether it makes sense to accept > >a > >time-zone offset with seconds, when the granularity seems to be 15 > >mins? > > > >https://en.wikipedia.org/wiki/List_of_UTC_time_offsets > > > >— Benjamin > > No need. Early timezone offsets in the timezone databas

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Derick Rethans
On 30 May 2021 23:18:31 BST, Benjamin Morel wrote: >> >> I can't think of why this couldn't work. Duke a bug report please at >> bugs.php.net? > > >Before doing so, shouldn't we discuss whether it makes sense to accept >a >time-zone offset with seconds, when the granularity seems to be 15 >mins? >

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Benjamin Morel
> > I can't think of why this couldn't work. Duke a bug report please at > bugs.php.net? Before doing so, shouldn't we discuss whether it makes sense to accept a time-zone offset with seconds, when the granularity seems to be 15 mins? https://en.wikipedia.org/wiki/List_of_UTC_time_offsets — Be

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Derick Rethans
On 30 May 2021 22:45:12 BST, Benjamin Morel wrote: >Hi internals, > >An issue was brought up >on >my date-time library, that boils down to the fact that DateTimeZone >silently falls back to UTC when providing an offset with seconds: > >(new DatetimeZo

[PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Benjamin Morel
Hi internals, An issue was brought up on my date-time library, that boils down to the fact that DateTimeZone silently falls back to UTC when providing an offset with seconds: (new DatetimeZone('+01:45:30'))->getName(); // 00:00 https://3v4l.org/9ZrK