The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am trying to format the sql but I can't because joindate, is a 'int' field
mysql> select DATE_FORMAT(joindate, '%m.%d.%Y') AS joindate from user limit 0,1; +----------+ | joindate | +----------+ | NULL | Why would the unix timestamp be stored in a 'int' field? |
#2
|
||||
|
||||
![]()
the unix timestamp is the ammount of seconds that have been since 1.1.1970, thats why it's saved as an int-val.
|
#3
|
|||
|
|||
![]()
because its too long to be a smallint field and a timestamp is always an integer since its seconds since the epoch.
|
#4
|
||||
|
||||
![]()
Why not store it in a 'TIMESTAMP' field? Do you know any way I can use date_format on it, since its not in a 'TIMESTAMP' field.
|
#5
|
||||
|
||||
![]()
Use the vbdate function:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|