![]() |
which to use mktime() or gmmktime()?
i am not sure which is best to use when creating a UNIX timestamp for vBulletin.
|
mktime() expects the time being local time, gmmktime() expects it to be UTC - that's the whole difference.
|
Doesn't vB normally use vbmktime() ?
|
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. |
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 :)
|
All times are GMT. The time now is 05:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|