Ticket #2008 (closed defeito: fixed)
Evento criado com data incorreta
Reported by: | cesar.vianna | Owned by: | guilherme.silva |
---|---|---|---|
Priority: | normal | Milestone: | Expresso 2.2.0.1 |
Component: | Calendar | Version: | branch 2.2 |
Severity: | média | Keywords: | TAG2.2.0.1.4 |
Cc: | WorkGroup: | Centro de Testes |
Description (last modified by rommelcysne) (diff)
Criar um evento conforme segue:
Data inicial: 13/06/2099 Data final: 13/06/2011
O agendamento será criado com data inicial igual ao dia atual.
Change History
comment:1 Changed 13 years ago by rommelcysne
- Status changed from new to closed
- Resolution set to fixed
- Description modified (diff)
comment:2 Changed 13 years ago by cesar.vianna
Rommel, o problema não é a data limite e sim que a data inicial é maior que a final e isso não foi identificado por que o valor era maior que 2038.
comment:3 Changed 13 years ago by rommelcysne
Ok, detectar que a data inicial é maior que a final o Expresso faz certinho, neste caso não fez porque o ano era maior que 2037, não importa se foi data final ou inicial.
O fato é que se o ano for maior que 2037 vai dar data inválida, se o ano for menor que 2037, dará o erro caso a data inicial seja maior que a final.
Note: See
TracTickets for help on using
tickets.
Aviso no site php.net:
"Caution Before PHP 5.1.0, negative timestamps were not supported under any known version of Windows and some other systems as well. Therefore the range of valid years was limited to 1970 through 2038."
O maior ano válido é 2037, com 2038 já dá erro (a data vem vazia).
Fiz uma alteração para atender ao que foi reclamado na descrição do ticket.
Arquivo alterado:
Commit da revisão [4604] do branch 2.2.0.1.