vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327525

Problem with poll and timeout datepicker
by shka
08 Sep 2019 19:40

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.



All times are GMT. The time now is 08:14.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.