Welcome Guest, Not a member yet? Register   Sign In
The best way to store date/time in MySQL for use with 'date' helper?
#1

[eluser]Dan Murfitt[/eluser]
Hi

I just wondered what people are using to store times/dates in MySQL for use with the CI 'date' helper?

I'm building a site with user specific timezone support, so I need to use the gmt_to_local() function. Normally I would use 'datetime', but I'd have to convert the datetime string back to a unix timestamp every time, so maybe int(11) would be better?

Any advice on this appreciated Smile

Many thanks
Dan


Messages In This Thread
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 07-15-2008, 11:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB