I've wanted to know to, but was too lazy to look into where $time is defined. I will poke around to see what can be found. Meanwhile, maybe someone more knowledgeable will offer some insight .
The thing is, as this cms lasts more and more years, it will become more and more of an issue .
This will change the time format from 24-hour (military time) to 12-hour (civilian time), e.g. AM/PM. It will add the year to the date. And, it will also keep the date from wrapping to the next line in your 'Old Articles' block, luchtzak.
Maybe you guys can help me with another (similar) problem of mine...
... its in the Stories Archive module, when you select a month/year to display articles from, when the page comes up, it shows up as (for example)...
MYSITE: 2003
...instead of MYSITE: MONTH 2003. Any ideas where/how this can be fixed?
TIA,
Anthony.
gear Captain
Joined: May 14, 2003
Posts: 579
Location: Mid-Cities
Posted:
Fri Feb 27, 2004 7:48 am
I'm chopped liver .
In modules/Stories_Archive/index.php in the show_month function around line 63 do you have this:
Code:
title("$sitename: $month_l $year");
g
anthonyaykut Lieutenant
Joined: Mar 26, 2003
Posts: 182
Location: Europe
Posted:
Fri Feb 27, 2004 7:55 am
YEP!
gear Captain
Joined: May 14, 2003
Posts: 579
Location: Mid-Cities
Posted:
Fri Feb 27, 2004 6:36 pm
Well, thanx, I am chopped liver.
I tried right clicking on the page, but for some silly reason that is disabled and I didn't want to waste the time to get the source other ways. My credit cards are maxed, so I was unable to call the psychic hotline, which means we lose out on Miz Chloe's valuable input. But, sure enuff, there is a problem .
g
TwoFourSixteen Nuke Soldier
Joined: Mar 03, 2004
Posts: 15
Location: .:Unknown:.
Posted:
Fri Mar 05, 2004 1:44 pm
VinDSL wrote:
Go look at my site. If you like the date/time format that I use:
This will change the time format from 24-hour (military time) to 12-hour (civilian time), e.g. AM/PM. It will add the year to the date. And, it will also keep the date from wrapping to the next line in your 'Old Articles' block, luchtzak.
I thought this was going to solve my problem, however it only made it a little more obvious.
When articles were posted, the posted-by line was:
Posted by soldiersElite on Friday, March 05 @ Pacific Standard Time (3 reads)
I used your fix on lang-english.php, and now it reads:
Posted by soldiersElite on Friday, March 05, 2004 @ :29 AM Pacific Standard Time (3 reads)
I'll probably be working with things all the time, but you can see how it currently is at any time. http://soldierselite.com
At least the minutes are there now, but still no hour. I'm pretty familiar with how the context of how the PHP date() function can be changed to change the way times/dates are displayed, but I'm not having any luck on this one still.
I'll keep tinkering with it, and if I come across something that works, I shall return with my solution. In the meantime, anyone seeing my "obvious" mistake. I've been staring at code for 3 days straight (for all sorts of things) and it's all starting to blur. I could've easily missed something simple. Time to go stare at the sun for a minute, get my eyesight back to "normal." More to come...
I was looking through the DATESTRING and it just looks completely out of order to me.
I'm used to setting them in php forums.
I use: l M d, Y g:i A
and get a result like: Friday Mar 05, 2004 1:41 AM
But in the lang-english syntax, it looks as though
Code:
"%A, %B %d, %Y @ %l:%M %p %Z
would display these things
A = Uppercase Ante meridiem and Post meridiem (AM or PM)
B = Swatch Internet time (000 through 999) - don't see that anywhere?!?
d = Day of the month, 2 digits with leading zeros (01 to 31)
Y = A full numeric representation of a year, 4 digits (2004)
"@"
l = A full textual representation of the day of the week (Sunday through Saturday)
":"
M = A short textual representation of a month, three letters (Jan through Dec)
p = ???? No definition found for this???
Z = Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. (-43200 through 43200) - don't see that anywhere, either?!?
So... where is it pulling the hours and minutes (and if wanted, seconds) from? And what sorts these things into the correct order. Even with the EXACT code above in place, I am receiving everything except the hours displayed. (see previous post)
So, I guess the real/new question is, where do I set g:i:s ???
Desired Result for Article footer - Friday, March 5, 2004 @ 12:29 AM PST (prefer abreviation, not Pacific Standard Time)
Assumed syntax - "l, F j, Y @ g:i A T"
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum