View Single Post
  #1  
Old 08 Sep 2019, 19:40
shka shka is offline
 
Join Date: Mar 2016
Problem with poll and timeout datepicker

I'm running 5.5.3 in a test environment with german language pack.

Make a poll with timeout. If I reedit this poll with english forum language the datefield is correct shown, $conversation["timeoutstr"] has a valid value.

If I change to german and edit the poll the datefield shows nothing, JS reports an "invalid string".

core\vb\library\content\poll.php - line 110

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

core\includes\functions.php - line 1975 ff.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In "en" case the date() is called with "m/d/Y H:i" - return value is a correct date string
In "de" case the strftime() is called with "m/d/Y H:i" - return value is "m/d/Y H:i", cause i is an invalid param for strftime and all params need a %.
So for me it only works with "%m/%d/%Y %H:%M"

Wrong vB configuration? Known bug? I use php 7.3.4

core\includes\functions.php - line 1975 ff. quick and dirty

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote