You are not logged in.
Pages: 1
Dear sir
this morning i get this notification from ticket. can you guide me how to fix it?
"Information
12-13-2022 08:17 Invalid
12-13-2022 08:08 Invalid
12-13-2022 08:06 Invalid
12-13-2022 08:04 Invalid"
Offline
Dear sirs
after i create a ticket also appear the invalid notice, can you help me fix this?
Offline
I have figured a way to make that notification disappear. It is triggered by the GLPI_ROOT/src/Html.php function called convDate(). If you look this portion of the file (in my case, 200 since I am using the latest GLPI version at the time of this post):
try {
$date = new \DateTime($time);
} catch (\Throwable $e) {
ErrorHandler::getInstance()->handleException($e);
Session::addMessageAfterRedirect(
sprintf(
__('%1$s %2$s'),
$time,
_x('adjective', 'Invalid')
)
);
return $time;
Comment out the "Session::addMessageAfterRedirect(" to the ");" before return $time; using */ and /* and the error will go away. I think the issue is that there is a problem with the date conversion if you set the time to a different format in GLPI. If not I am not sure if that is causing the problem, but at least my method provides a workaround.
Offline
Hi fellas,
writing from the German IT department... :-)
Here, we use the default date format DD-MM-YYYY. However, our GLPI Instance was still set to MM-DD-YYYY
I had the same issue and after setting it to DD-MM-YYYY the Notification went away. Thanks to gryfalco22's detailed description, I was able to fix this even without the Workaround.
Have a good day!
Offline
Hello,
This will be fixed in GLPI 10.0.11. The issue is with the historical entries in the timeline which are hidden by default, which already have their date converted to the user's preference but try to have it converted again during the display of the timeline which cannot be done with the DD-MM-YYYY format.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
I have figured a way .......................my method provides a workaround.
TOP solution! Thank you!
Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0, Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.
Offline
Pages: 1