1391
Mamba
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 23:18

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Lupin, can you test also the Yogurt and let us know if the dates there are presented correctly for you?

Since it is now in development, it's a perfect opportunity to make sure that it works shows the dates properly

Thanks!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1392
Mamba
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 23:11

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Thanks Lucio!!!!

Lupin, can you test if this solutions works for you? If it does, we'll add it to Publisher.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1393
luciorota
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 19:18

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


The bug is the result of an incorrect use of the function strtotime(), it must have a format in English to work...

BUGFIX

file: publisher\class\item.php, line 1061
replace
$localTimestamp strtotime($resDate['date']) + $resTime['time'];


with
$dateTimeObj DateTime::createFromFormat(_SHORTDATESTRING$resDate['date']);
$dateTimeObj->setTime(000);
$localTimestamp $dateTimeObj->getTimestamp() + $resTime['time'];


file: publisher\class\item.php, line 1088

replace
$localTimestamp strtotime($resExDate['date']) + $resExTime['time'];


with
$dateTimeObj DateTime::createFromFormat(_SHORTDATESTRING$resExDate['date']);
$dateTimeObj->setTime(000);
$localTimestamp $dateTimeObj->getTimestamp() + $resExTime['time'];


Good job! / Buon lavoro!



1394
luciorota
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 17:59

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Hi Lupin /Ciao Lupin

Do not change

define('_DBDATESTRING',"Y-m-d");
define('_DBTIMESTRING',"H:i:s");
define('_DBTIMESTAMPSTRING',"Y-m-d H:i:s");


These definition are db related (MySQL date and time data types) and they are NOT dependent on the language used ...

Lucio



1395
Lupin
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 16:27

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Hi Mamba ,

I think the problem is inherent in publisher.

- it is present in all three themes that I have available ( xswatch, xbootsptrap and default )
- It is NOT present in wggallery and adslight in the same installation.

Cya

Pino

ooops I've seen just now you second post ... I will check and report.



1396
Mamba
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 15:39

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Couple of older links for you, so you can take a look and see if they can help you.

https://xoops.org/modules/newbb/viewtopic.php?post_id=343268#343268

https://www.frxoops.org/modules/newbb/viewtopic.php?topic_id=35445&post_id=218518#forumpost218518

https://xoops.org/modules/newbb/viewtopic.php?post_id=358022#358022

I did look at the Italian translation that is on GitHub, and you have there this in global.php,

define('_MEDIUMDATESTRING',"j/n/Y G:i");
define('_SHORTDATESTRING',"j/n/Y");

define('_DBDATESTRING',"Y-m-d");
define('_DBTIMESTRING',"H:i:s");
define('_DBTIMESTAMPSTRING',"Y-m-d H:i:s");
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1397
Mamba
Yogurt 3.5 Alpha-5 (Social Network module) released for testing
  • 2020/4/21 13:17

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Yogurt is an old social network module from Brazil.

Thanks to a very hard work by LioMJ, we're now at Alpha-5 release, and will be moving to Beta development cycle.

Anybody would like to try to help us? Just fork it and start contributing!

FORK: https://github.com/XoopsModules25x/yogurt

DOWNLOAD: https://github.com/XoopsModules25x/yogurt/releases

Resized Image
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1398
Mamba
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 13:01

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Try with a different theme to see if there is an issue with xswatch or with Core or with Publisher.

You can also test it on XOOPS 2.5.11 with xswatch4, which is based on Bootstrap 4

And please provide the steps that I could try to replicate here, to see what is happening.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1399
Lupin
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 10:08

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


No, it doesn't work.

The problem is I MUST enter the date as "m/d/Y " to correctly store the data that ONLY AFTER during the visualization, is transformed as requested in "d/m/Y"

I think both date format setting on global.php and in admin page ( preferences ) do not change the problem.

Pino



1400
Lupin
Re: Datetime problems with Publisher 1.07 Final and Xoops 2.5.10
  • 2020/4/21 9:48

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


I will check thanks !

Sorry, the theme I'm using is "xwatch" ( about template problem ) ; of course I can fix this, but I think it is correct to report.

A further question : in view mode "Full View" pagination doesn't appear ... it is because this mode is intended to have a unique long list, or it is only a simple forgetfulness?



Cya

Pino




TopTop
« 1 ... 137 138 139 (140) 141 142 143 ... 29425 »



Login

Who's Online

510 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 510


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits