PDA

View Full Version : Setting a different time zone



tom.bcn
11-05-2006, 06:12 AM
Probably a silly question but I've searched and can't find the solution. I've installed an SMF forum on a new site I've set up and the local time displayed on the forum's front page must be the local time at Bluehost HQ. I'd much rather it displayed the time here in Barcelona which is CET (or GMT +1).

Is there a way that I can change the time zone for my entire BH account? If not, does anyone know how to change the time settings on an SMF forum. I can't find anything except how to change it per user which isn't really a good solution.

dpicon
11-06-2006, 12:16 PM
Hola,

If the forum is programmed in php, you can browse the code files and look for a file included everywhere (tipically a .inc) and add this php command.

putenv("TZ=Europe/Madrid");

Espero que te funcione.

tom.bcn
11-08-2006, 03:55 AM
moltes grącies! but I can't find any .inc files. Could I add this line to a php.ini or something like that? would that do anything?