DIY Themes Forums  

Go Back   DIY Themes Forums > Thesis Theme > Troubleshooting Thesis
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2008, 03:36 PM
Junior Member
 
Join Date: Jul 2008
Posts: 7
Default Date Format Bug?

Hi Chris,

I just got the Thesis Theme (1.0.2). Great stuff!

I think I've found a bug though. How do I change the date format? I'm using Wordpress Mu 1.5.1, and no matter how I change the date format under Wordpress' settings, I still get the same date format (default is F j, Y).

I want it to have this format: j F, Y

Thanks!
Shyan
Reply With Quote
  #2 (permalink)  
Old 07-22-2008, 10:34 PM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

ncshyan: You'll need to modify a Thesis file to take charge over the date format.

Open lib/functions/content_functions.php and find this bit of code:

PHP Code:
get_the_time('F j, Y'
To get it to use your WordPress settings, change that bit to this:

PHP Code:
get_the_time() 
There ya go.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #3 (permalink)  
Old 07-23-2008, 03:54 AM
Junior Member
 
Join Date: Jul 2008
Posts: 7
Default

Gasp... change the code? Choke... erm... ok. :P

Thanks!
Shyan
Reply With Quote
  #4 (permalink)  
Old 07-23-2008, 03:56 AM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

Yeah, I know; that isn't ideal, but it's the only way to get around the hardcoded date format in that file.

At least it's a minor change.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #5 (permalink)  
Old 07-23-2008, 04:50 AM
Junior Member
 
Join Date: Jul 2008
Posts: 7
Default

Thanks Rick, it worked!

Shyan
Reply With Quote
  #6 (permalink)  
Old 08-17-2008, 08:21 PM
Junior Member
 
Join Date: Aug 2008
Location: Haarlem, the Netherlands
Posts: 8
Default

Quote:
Originally Posted by kingdomgeek View Post
ncshyan: You'll need to modify a Thesis file to take charge over the date format.

Open lib/functions/content_functions.php and find this bit of code:

PHP Code:
get_the_time('F j, Y'
To get it to use your WordPress settings, change that bit to this:

PHP Code:
get_the_time() 
There ya go.
That didn't work for me. I'm using Thesis 1.02 on Wordpress 2.6.1 When I change the file you suggested than I only get to see the time. I would like to see the date and the time for my postings. How can I get those?
Reply With Quote
  #7 (permalink)  
Old 08-18-2008, 01:13 AM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

Use something like this, then:

Code:
get_the_time('F j, Y, g:i a')



__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #8 (permalink)  
Old 08-18-2008, 09:17 AM
Junior Member
 
Join Date: Aug 2008
Location: Haarlem, the Netherlands
Posts: 8
Default

Thanx!

I'm from Holland so I made that a

get_the_time('j F Y, H:i')
Reply With Quote
  #9 (permalink)  
Old 08-18-2008, 10:36 PM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

I'm consistently amazed at how worldwide Thesis is. (Well done, Chris!)
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #10 (permalink)  
Old 09-01-2008, 09:15 PM
Junior Member
 
Join Date: Aug 2008
Posts: 7
Default

Much better, thanks!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0