Skip to main content
Tweeted twitter.com/StackOverflowPT/status/956844223231348736
adicionou 4 caracteres ao conteúdo
Fonte Link
Wallace Vizerra
  • 107,4mil
  • 106
  • 440
  • 920

BRST significa "Brasília Summer Time"

Antes da versão 7.0.26, o PHP fazia o parse da seguinte string:

$date = new DateTime("Mon Jan 01 20:00:00 BRST 2017");

Depois dessa versão, o PHP retorna:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

Eu pesquisei no changelog, mas não consegui encontrar nenhuma explicação pra isso.

Exemplo:

https://3v4l.org/c6K56#v7026

BRST significa "Brasília Summer Time"

Antes da versão 7.0.26, o PHP fazia o parse da seguinte string:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

Depois dessa versão, o PHP retorna:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

Eu pesquisei no changelog, mas não consegui encontrar nenhuma explicação pra isso.

Exemplo:

https://3v4l.org/c6K56#v7026

BRST significa "Brasília Summer Time"

Antes da versão 7.0.26, o PHP fazia o parse da seguinte string:

$date = new DateTime("Mon Jan 01 20:00:00 BRST 2017");

Depois dessa versão, o PHP retorna:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

Eu pesquisei no changelog, mas não consegui encontrar nenhuma explicação pra isso.

Exemplo:

https://3v4l.org/c6K56#v7026

Pergunta reaberta por rray
removeu 6 caracteres do conteúdo; título editado
Fonte Link

Why Por que o PHP does notnão faz mais o parse de datas com "BRST" dates anymore?

BRST refers tosignifica "Brasília Summer Time"

Before versionAntes da versão 7.0.26, o PHP couldfazia o parse thisda seguinte string without any problem:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

After that versionDepois dessa versão, o PHP returnsretorna:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

I searched in changelogsEu pesquisei no changelog, but I couldn't find any explanation for thatmas não consegui encontrar nenhuma explicação pra isso.

Here is the exampleExemplo:

https://3v4l.org/c6K56#v7026

Why PHP does not parse "BRST" dates anymore?

BRST refers to "Brasília Summer Time"

Before version 7.0.26, PHP could parse this string without any problem:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

After that version, PHP returns:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

I searched in changelogs, but I couldn't find any explanation for that.

Here is the example:

https://3v4l.org/c6K56#v7026

Por que o PHP não faz mais o parse de datas com "BRST"?

BRST significa "Brasília Summer Time"

Antes da versão 7.0.26, o PHP fazia o parse da seguinte string:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

Depois dessa versão, o PHP retorna:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

Eu pesquisei no changelog, mas não consegui encontrar nenhuma explicação pra isso.

Exemplo:

https://3v4l.org/c6K56#v7026

Pergunta fechada como "Não é adequada para este site" por Inkeliz, BrTkCa, Math
The version 7.0.26 is the first one to evidence the problem.
Fonte Link

BRST refers to "Brasília Summer Time"

Before version 7.0.2526, PHP could parse this string without any problem:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

After that version, PHP returns:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

I searched in changelogs, but I couldn't find any explanation for that.

Here is the example:

https://3v4l.org/c6K56#v7026

BRST refers to "Brasília Summer Time"

Before version 7.0.25, PHP could parse this string without any problem:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

After that version, PHP returns:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

I searched in changelogs, but I couldn't find any explanation for that.

Here is the example:

https://3v4l.org/c6K56#v7026

BRST refers to "Brasília Summer Time"

Before version 7.0.26, PHP could parse this string without any problem:

$date = DateTime("Mon Jan 01 20:00:00 BRST 2017");

After that version, PHP returns:

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to 
parse time string (Mon Jan 01 20:00:00 BRST 2017) at position 4 (J): 
The timezone could not be found in the database in /in/c6K56:5
Stack trace:
#0 /in/c6K56(5): DateTime->__construct('Mon Jan 01 20:0...')
#1 {main}
  thrown in /in/c6K56 on line 5

Process exited with code 255.

I searched in changelogs, but I couldn't find any explanation for that.

Here is the example:

https://3v4l.org/c6K56#v7026

Fonte Link
Carregando