Forum

Report "Colored mon...
 
Notifications
Retirer tout

Report "Colored monthly resource planning" failed to parse date

2 Posts
2 Utilisateurs
0 Reactions
1,149 Vu
(@coasterman)
Posts: 127
Reputable Member
Début du sujet
 
[#9228]

Hello

The reason for the following bug is, that there is added a leading 0 (too much) in case of month month  >= 10 --> OK

The report for "Colored monthly resource planning fails.

Report "Colored monthly resource planning"

hide report parameters  year : 2024
month : 1  2024-01-04 11:35  ERROR : DateTime::__construct(): Failed to parse time string (2024-001-01) at position 7 (1): Unexpected character

We got following fault

:2024-01-04 10:36:31.201 ** ERROR ** [V11.0.3] EXCEPTION **
2024-01-04 10:36:31.201
** ERROR ** [V11.0.3] on file '/var/www/html/projeqtor/tool/projeqtor.php' at line (5498)
2024-01-04 10:36:31.201
** ERROR ** [V11.0.3] cause = DateTime::__construct(): Failed to parse time string (2024-001-01) at position 7 (1): Unexpected character
2024-01-04 10:36:31.201
** ERROR ** [V11.0.3] => #0 /var/www/html/projeqtor/tool/projeqtor.php (5498) -> __construct()
2024-01-04 10:36:31.201
** ERROR ** [V11.0.3] => #1 /var/www/html/projeqtor/report/colorPlan.php (163) -> lastDayOfMonth()
2024-01-04 10:36:31.222
** ERROR ** [V11.0.3] EXCEPTION **
2024-01-04 10:36:31.222 ** ERROR ** [V11.0.3] on file '/var/www/html/projeqtor/tool/projeqtor.php' at line (5498)
2024-01-04 10:36:31.222 ** ERROR ** [V11.0.3] cause = DateTime::__construct(): Failed to parse time string (2024-001-01) at position 7 (1): Unexpected character
2024-01-04 10:36:31.222 ** ERROR ** [V11.0.3] => #0 /var/www/html/projeqtor/tool/projeqtor.php (5498) -> __construct()
2024-01-04 10:36:31.222 ** ERROR ** [V11.0.3] => #1 /var/www/html/projeqtor/report/colorPlan.php (163) -> lastDayOfMonth()
2024-01-04 11:19:31.166 ** ERROR ** [V11.0.3] EXCEPTION **
2024-01-04 11:19:31.166
** ERROR ** [V11.0.3] on file '/var/www/html/projeqtor/tool/projeqtor.php' at line (5498)
2024-01-04 11:19:31.166
** ERROR ** [V11.0.3] cause = DateTime::__construct(): Failed to parse time string (2024-001-01) at position 7 (1): Unexpected character
2024-01-04 11:19:31.166
** ERROR ** [V11.0.3] => #0 /var/www/html/projeqtor/tool/projeqtor.php (5498) -> __construct()
2024-01-04 11:19:31.166
** ERROR ** [V11.0.3] => #1 /var/www/html/projeqtor/report/colorPlan.php (163) -> lastDayOfMonth()
2024-01-04 11:19:31.185
** ERROR ** [V11.0.3] EXCEPTION **
2024-01-04 11:19:31.185 ** ERROR ** [V11.0.3] on file '/var/www/html/projeqtor/tool/projeqtor.php' at line (5498)
2024-01-04 11:19:31.185 ** ERROR ** [V11.0.3] cause = DateTime::__construct(): Failed to parse time string (2024-001-01) at position 7 (1): Unexpected character
2024-01-04 11:19:31.185 ** ERROR ** [V11.0.3] => #0 /var/www/html/projeqtor/tool/projeqtor.php (5498) -> __construct()
2024-01-04 11:19:31.185 ** ERROR ** [V11.0.3] => #1 /var/www/html/projeqtor/report/colorPlan.php (163) -> lastDayOfMonth()

Specially the date in the following logged lines is very strange 2024-001-1

Failed to parse time string (2024-001-01)


 
Posté : 04/01/2024 1:36 pm
(@babynus)
Posts: 14952
Membre Admin
 

Issue is fixed on V11.0.4


 
Posté : 07/01/2024 9:04 pm
Share:
Retour en haut