From eustache.megnigbeto at outlook.com Wed Jan 11 11:39:35 2023 From: eustache.megnigbeto at outlook.com (=?iso-8859-1?Q?Eustache_M=EAgnigb=EAto?=) Date: Wed, 11 Jan 2023 10:39:35 +0000 Subject: [Isis-users] Misfunctionning in date field handling in ABCD 2.2.1 beta In-Reply-To: <25b8b959-7dea-e59a-788b-46c91853a905@xs4all.nl> References: <182ba483-2b2d-53ce-b369-396d047b41d1@xs4all.nl> <25b8b959-7dea-e59a-788b-46c91853a905@xs4all.nl> Message-ID: Dear Fred, I modified the file following the directives you gave, but it seems it is not working. But my current message is not relative to the date filed, but the operator and date one. I have reported that in ABCD 2.2.1 bet (sept 2022), updating a record deletes the OD field previous content and replaces it by a new one . Fortunately, I downloaded the version of dec 2022 and installed it on another computed, with the same database and noticed that this misfunctioning does occur no longer. Then I updated the software on the first computer and the misfunctioning persists On the demo site (https://demo.abcd-community.org/) ,I noticed the same misfunctioning. The difference between the two local computers is the operating systems: Windows 11 in the case the misfunctioning exists and Windows 10 on the case it does not exist. Perhaps, this piece of information may help the team of developers to identify the problem and know how to fix it. Thanks Eustache M. ________________________________ From: Fred Hommersom Sent: Thursday, December 22, 2022 12:56 PM To: isis-users at iccisis.org ; Eustache Mêgnigbêto Subject: Re: [Isis-users] Misfunctionning in date field handling in ABCD 2.2.1 beta Hello Eustace. The date format problem can probably be solved by modifications in your configuration. File htdocs/central/config.php contains the code: // USED FOR ALL THE DATE FUNCTIONS. DD=DAYS, MM=MONTH, AA=YEAR. USE / AS SEPARATOR if (isset($def["DATE_FORMAT"])){ $config_date_format=$def["DATE_FORMAT"]; } else { $config_date_format="d/m/Y"; } The characters of the date format are defined in https://www.php.net/manual/en/datetime.formats.date.php So d/m/Y implies Op 2022-11-17 om 16:49 schreef Fred Hommersom: Hello Eustache Thanks for your feedback. We will dig into this in order tp find what the problem is and react on it. This might be a 'sleeping' error, so it is possible that we send you some new code. Regards Fred Op 2022-11-17 om 16:16 schreef Eustache Mêgnigbêto: Hello, I downloaded yesterday the last version of ABCD at https://github.com/ABCD-DEVCOM/ABCD2 and installed it. I"m operating an existing database with 2 of the fields being data type. The first is (simple) date type (D in the FDT) and the second the date and operator type (OD in the FDT). For the (simple) date field, when on choose the date from the displayed calendar, it transcripted into the field with the format mm/dd/yyyy instead of dd/mm/yyyy as in the previous version. I suppose that this could be fixed via the PHP configuration file. For the OD field, I noticed that each time a record is updated the previous content of the field is deleted and a new one (the current) only is added. In the previous version of ABCD, each record updating adds an occurrence to the field. This situation prevents tracking records modifications. How to correct these situations ? Many thanks in advance. [https://opengraph.githubassets.com/2ac3f8873cd15680729c4d938c0ef20be6caf6219a57ffa2503145b0821cccd4/ABCD-DEVCOM/ABCD2] GitHub - ABCD-DEVCOM/ABCD2: ABCD v2.x based on CISIS The name itself already expresses the ambition of the software suite : not only providing automation functions for the 'classic' libraries but also other information providers such as documentation centres. github.com _______________________________________________ isis-users mailing list isis-users at iccisis.org To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users Or contact Henk Rutten: hlrutten at xs4all.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: