The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
This is related to the PHP widget question I had
I have this code Code:
SELECT date_format(gig.date, '%a %D %b %Y') AS gig_date, Code:
510025a 17th Dec 2009 Code:
Thurs 17th Dec 2009 |
|
#2
|
|||
|
|||
|
Are you sure gig.date is a valid date? This might be useful: http://www.w3schools.com/SQL/func_date_format.asp Scroll to the bottom for examples. Otherwise I'd guess your error lies somewhere else in your code.
|
|
#3
|
||||
|
||||
|
Yeah the gig.date is 2009-12-17 and the code works fine on vb3 but in vb4 it displays with the numbers at the start rather than the Day.
Something very odd happening. --------------- Added 18 Dec 2009 at 10:54 --------------- ok jsut realised that when you save the widget the Code:
SELECT date_format(gig.date, '%a %D %b %Y') Code:
SELECT date_format(gig.date, '% u0025 a %D %b %Y') |
|
#4
|
||||
|
||||
|
For the record this was a bug in the PHP widget. vBulletin have it at confirmed pending so should be fixed after rc4.
|
|
#5
|
||||
|
||||
|
That's a weird one - good catch!
|
|
#6
|
||||
|
||||
|
Yup very strange.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|