Time format

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Time format

Postby Le-Thor » Tue Jul 31, 2007 12:42 pm

In the menu in roster the time format is like this "Last updated: Wed Jul 25th, 7:48pm (DK)"

Can i change that, so i get a 24h time format?
Last edited by Le-Thor on Tue Jul 31, 2007 12:59 pm, edited 1 time in total.
User avatar
Le-Thor
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Mon Jul 23, 2007 8:30 pm
Location: Denmark

Time format

Postby zanix » Tue Jul 31, 2007 12:55 pm

Menu?
Menu of what?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Time format

Postby Le-Thor » Tue Jul 31, 2007 12:59 pm

sorry.

The menu in roster v1.7.3
Last edited by Le-Thor on Tue Jul 31, 2007 1:16 pm, edited 1 time in total.
User avatar
Le-Thor
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Mon Jul 23, 2007 8:30 pm
Location: Denmark

Time format

Postby zanix » Tue Jul 31, 2007 1:27 pm

Yes, in the localization/ folder
Find your locale and edit these lines
Code: Select all
$timeformat['enUS'] = '%a %b %D, %l:%i %p'; // MySQL Time format      (example - '%a %b %D, %l:%i %p' => 'Mon Jul 23rd, 2:19 PM') - http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html
$phptimeformat['enUS'] = 'D M jS, g:ia';    // PHP date() Time format (example - 'D M jS, g:ia' => 'Mon Jul 23rd, 2:19pm') - http://www.php.net/manual/en/function.date.php

There are URLs next to each one for help in the format codes

And I asked "Menu in what?" because this is the general chat forum, this should have been in the Roster -> General Help and Support forum
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Time format

Postby Le-Thor » Tue Jul 31, 2007 1:29 pm

sorry i will remember next time
User avatar
Le-Thor
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Mon Jul 23, 2007 8:30 pm
Location: Denmark

Time format

Postby zanix » Tue Jul 31, 2007 2:46 pm

:thumleft:
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Time format

Postby enzeru » Thu Aug 09, 2007 1:49 am

Thanks a ton! It's been awhile, I totally forgot about the guild profiler.
enzeru
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Tue Aug 07, 2007 12:08 pm


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron