Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Report "Colored mon...
 
Notifications
Clear all

Report "Colored monthly resource planning" failed to parse date

2 Posts
2 Users
0 Reactions
1,170 Views
(@coasterman)
Posts: 127
Active Member
Topic starter
 
[#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)


 
Posted : 04 Jan 2024 13H36
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Issue is fixed on V11.0.4


 
Posted : 07 Jan 2024 21H04
Share:

Scroll to Top