PDA

View Full Version : date_format


Ghostsuit
16 Dec 2009, 23:30
This is related to the PHP widget question (http://www.vbulletin.org/forum/showthread.php?t=230342) I had

I have this code



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



returns



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now that should return something like



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Anyone ideas why it's not?

vaskies
17 Dec 2009, 07:24
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.

Ghostsuit
17 Dec 2009, 12:05
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

gets changed to with out the spaces between % u0025 and a



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

anyway to stop that or is it a bug?

Ghostsuit
21 Dec 2009, 11:20
For the record this was a bug in the PHP widget. vBulletin have it at confirmed pending so should be fixed after rc4.

Lynne
21 Dec 2009, 15:14
That's a weird one - good catch!

Ghostsuit
21 Dec 2009, 15:42
Yup very strange.