Welcome Guest, Not a member yet? Register   Sign In
Localised timezones?
#4

[eluser]Michael Wales[/eluser]
Wish I would have seen this one before you figured it out pyro. People always give me a hard time when I tell them to always store date/time as a Unix timestamp (rather than a MySQL Date/Time field). This is exactly why - you see how beautiful and functional that function is? 5 lines - and it works exactly as you would expect it to.

Plus, Unix timestamps just make more sense, and damn near all of the PHP Date/Time functions use a Unix timestamp for their calculations. Why insert a MySQL date/time field when you are going to convert it to Unix everytime you retrieve it?


Messages In This Thread
Localised timezones? - by El Forum - 11-28-2007, 05:44 AM
Localised timezones? - by El Forum - 11-28-2007, 05:51 AM
Localised timezones? - by El Forum - 11-28-2007, 06:24 AM
Localised timezones? - by El Forum - 11-28-2007, 08:38 AM
Localised timezones? - by El Forum - 11-28-2007, 08:49 AM
Localised timezones? - by El Forum - 11-28-2007, 08:52 AM
Localised timezones? - by El Forum - 11-28-2007, 09:14 AM
Localised timezones? - by El Forum - 11-28-2007, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB