View Full Version : PHP Dates: How can I translate them?
JulianD
04-16-2002, 07:54 AM
How can I translate the dates on vBulletin? I see the dates are built with the date() function, so I really don't know how to translate them to another language.
Any ideas?
Admin
04-16-2002, 09:58 AM
The timestamps are not "built" with date() but with time(), which returns the time in unix stamp. You use date() to convert them, or rather vbdate() to get the timezones correct and everything.
JulianD
04-16-2002, 10:34 AM
Oops, sorry aabout that... But then, there is no way to translate the
times?
BTW: this is my first reply by email. Let's see if it works.
JulianD
04-16-2002, 10:34 AM
Double post. Please delete :)
Admin
04-16-2002, 10:46 AM
Yes there is a way, use the date() function. :)
ArunanS
12-01-2002, 08:37 PM
Sorry to be off topic...but how do you email a post in anyways?
anders
12-01-2002, 11:31 PM
Originally posted by FireFly
Yes there is a way, use the date() function. :)
Sorry for all the messy posts but this should work but it doesent in vbulletin? is that couse of vbdate() ?
used :
<?php
/* Set locale to Swedish */
setlocale (LC_ALL, 'sv_SE');
?>
just put that in global php or something...
Just make sure you have the locale file installed that u want.
more at --> http://php.benscom.com/manual/sv/function.setlocale.php
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.