vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Time/date not shown properly on some forums/skins (https://vborg.vbsupport.ru/showthread.php?t=183070)

Valter 06-20-2008 03:38 PM

Time/date not shown properly on some forums/skins
 
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


All times are GMT. The time now is 04:49 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
  • Page Generation 0.00931 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete