View Full Version : which to use mktime() or gmmktime()?
AN-net
07-28-2005, 09:25 PM
i am not sure which is best to use when creating a UNIX timestamp for vBulletin.
Andreas
07-28-2005, 09:29 PM
mktime() expects the time being local time, gmmktime() expects it to be UTC - that's the whole difference.
Paul M
07-28-2005, 09:59 PM
Doesn't vB normally use vbmktime() ?
AN-net
07-28-2005, 10:03 PM
i didnt know there was one, can someone clarify this?
edit:
looking at calendar.php in 3.0.7, vbulletin uses gmmktime() to form its unix timestamps.
Dean C
07-29-2005, 05:43 PM
Use gmmktime when you want to give your users the right time based on what timezone they are in as opposed to the servers time :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.