Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:51 am EST
Geeklog Forums
Display time only - not date.
James
Anonymous
I\'m working on a new theme, and I was wanting to have in a table basically:
Date Article Posted: June 18, 2003
Time Article Posted: 3:43pm
Instead of \"June 18, 2003 @ 3:43pm\"
Spent the last hour trying to figure it out, to no success. Did a search on here, but couldnt find anything related to this. Is this possible, and has it been done before?
21
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by James: I\'m working on a new theme, and I was wanting to have in a table basically:
Date Article Posted: June 18, 2003
Time Article Posted: 3:43pm
Instead of \"June 18, 2003 @ 3:43pm\"
Date and time are not available as separate variables, only as the combined {story_date}
variable. You may want to submit that as a feature request (or as a patch, if you can work it out yourself).
Look at how the {story_date}
variable is set in function COM_article
in lib-common.php. With some PHP knowledge, it should be easy to figure out how to create a {story_time}
variable ...
bye, Dirk
7
7
Quote
All times are EST. The time is now 10:51 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content