Quote:
Originally Posted by N8
Sorry I mean from within a webquery
|
That part of the hack is inheriting date/time format you set in vbulletin options. So if you change vb option, it will also change accordingly.
But if you want to keep your vb option like that but only change webqueries, you can modify "view.php", find this line:
PHP Code:
$WQfield[$WTWQqdateparsedvalue] = WTdatelineTOusertime($WQfield[$WTWQqdateparsedvalue]);}
and replace it as:
PHP Code:
$WQfield[$WTWQqdateparsedvalue] =
vbdate("Y-m-d", $WQfield[$WTWQqdateparsedvalue], true).' - '.vbdate($vbulletin->options['timeformat'], $WQfield[$WTWQqdateparsedvalue]);}
There are 2 instances of this line and you need to change both. You can use anyother format you like instead of "Y-m-d". For other formats check:
http://php.net/manual/en/function.date.php