| Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10 |
| by Lupin on 2020/4/23 11:47:10 OK Lucio & Mamba, it seems that the modification also works with the d/m/Y format ... I think you can use this mod. However, there are a couple of aspects to review: the first concerns the date that the system proposes in the date field of the item modification form; in fact this proposes today's date instead of proposing the one that had previously been inserted. In addition to the problem of having to always check this data with each modification of other parts of the article, there is the danger that clicking "back" on the web bar, wrong data will be sent and you will find yourself with the article with today's date. The system should be able to interpret whether it is a new sending request or an article change request. The second problem is always that of the time ... although the time zone is set to GMT + 1 both in the general preferences and in the user account data, there are two hours of difference in the time displayed. In practice, if the sending time is set at 13.00, the 11.00 time is then displayed. Cya Pino Update : about the first problem , I saw if I set : le="color: #000000"><?php define('_DATESTRING', 'd-m-Y H:i:s'); define('_MEDIUMDATESTRING', 'd-m-Y H:i'); define('_SHORTDATESTRING', 'd-m-Y'); The form propones the correct stored data if I set : le="color: #000000"><?php define('_DATESTRING', 'd/m/Y H:i:s'); define('_MEDIUMDATESTRING', 'd/m/Y H:i'); define('_SHORTDATESTRING', 'd/m/Y'); The form propones the today's data ... it is possible? |
| Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10 |
| by luciorota on 2020/4/22 19:56:19 Try again ... Xoops using "\DateTime" and not "DateTime" Quote:
|
| Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10 |
| by Lupin on 2020/4/22 15:40:03 @Mamba about Yogurt: Since in Yogurt module there are no datetime settings, with correct timezone both in System preferences and in user preferences , time is perfect. Dates seemed to have different formats depending from which modules they were taken , of course "american style" ( Y/m/d or ) , then I modified global.php with le="color: #000000"><?php define('_DATESTRING', 'd/m/Y H:i:s'); define('_MEDIUMDATESTRING', 'd/m/Y H:i'); define('_SHORTDATESTRING', 'd/m/Y'); and in IMO everything works well in "european style". This was a quick look, but if you want I can see more ... |
| Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10 |
| by Lupin on 2020/4/22 13:28:27 I see this : None All Errors (2) Deprecated (0) Queries (18) Blocks (0) Extra (3) Timers(3) Errors Notice: Array to string conversion in file /class/libraries/vendor/xoops/xmf/src/FilterInput.php line 251 Error: Error: Class 'XoopsModules/Publisher/DateTime' not found in file /modules/publisher/class/Item.php line 1061 Anyway it seems with the format d-m-Y instead of d/m/Y it works better. ( done before your hack ) |
| Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10 |
| by luciorota on 2020/4/22 12:23:45 I know
|