PDA

View Full Version : Time/date not shown properly on some forums/skins


Valter
06-20-2008, 03:38 PM
I'm using standard vbdate function to build time, then variable in template to display it.

Example:
$cyb_time = vbdate($vbulletin->options['cyb_timeformat'], TIMENOW);

'cyb_timeformat' is set to "H:i" and $cyb_time displays "22:15" in template.

But for some users it displays "H:i" on output page. Some of them are able to fix this by putting "%" just before parameter. For example "%H:%i". Is this problem with some custom styles or...?

Thanks in advance for any tips.

Symbian.info
03-06-2009, 08:21 AM
Hi Cybernetic.

This was probably fixed already a long time ago, but this has to do with locale settings. We have this problem all the time with plugins that define their own dateformat. Our locale setting is Dutch (locale ID nl_NL.ISO8859-1) and for standard date setting we have to use %e %b %Y. For date settings I would prefer all plugins to use the standard date format from vBulletin.

mauroc
09-24-2009, 05:19 PM
In Spanish I used:
%d-%m instead of d-m
and
%H:%M instead of H:i