|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Oct 2008
2 posts
Gave thanks: 0
Thanked 0 times
|
Nucleus date format question
(Not sure if this is the right forum, so if it isn't, mod, please move at your leisure.)
Hey all - I've been with surpass for a couple of weeks now, and I've done a good job of keeping up with my blog, thankyouverymuch. ![]() The one thing that bothers me about it, though, is that I can't seem to figure out where the setting for the date format is in the php files on my account. I'm American, so I'd rather see October 2 represented as 10.2 on the blog and not 2.10. I've tried to look up information online on how to change it, but I can't seem to find the stuff they're referring to - so with that, I turn to you, the Surmunity. Anyone familiar with how to go about changing this? ![]() TIA... -CB Dented Cap Brewing |
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Sep 2004
Hosted on Pass42
279 posts
Gave thanks: 4
Thanked 50 times
|
Login to the admin section of your nucleus install.
First we need to edit the Template's index file... On the menu on the left, click "Templates". You should now see a list of files, find "default/index" and click the "edit" action. Now scroll down and look for the "Date and Time" section. Under this section is a field "Date Format" which probably contains "%d/%m", change this to "%m/%d". Then scroll to the bottom and click "Update Template". Now we need to edit the Template's item file... On the menu on the left, click "Templates". You should now see a list of files, find "default/item" and click the "edit" action. Now scroll down and look for the "Date and Time" section. Under this section is a field "Date Format" which probably contains "%d/%m", change this to "%m/%d". Then scroll to the bottom and click "Update Template". If you want to get fancy, you can use the following to customize your date and time formats:
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Oct 2008
2 posts
Gave thanks: 0
Thanked 0 times
|
Rick, would you believe that my friend and I couldn't find that because we were both looking in the file manager of cPanel, not in Nucleus in and of itself?
"Dammit, why can't I find what they're talking about in any of these PHP files?" ![]() Much obliged, sir - I'll definitely be bookmarking this thread. -CB |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
969 posts
Gave thanks: 49
Thanked 43 times
|
Somewhat unrelated, but I am using Wordpress and I had an issue with the date on my blog.
When I first started making posts, it only listed the DATE and TIME for the first post of each day. The way my theme (made it myself) formats the posts, it has the date and time on each post. I looked this up in the Codex for WP and I read that I just have to put the full date and time code (Unix format) into the time display format setting for Wordpress. Ok, so I did that and it showed the date and time as I wanted it to on each post on the blog index. However, the date and time on comments are displayed like: Tuesday October 7th, 2008 at Tuesday October 7th, 2008 at 10:29pm Reason for this is because it is showing the date stamp, and the time stamp, and the time stamp is set to show the date and the time, to fix the issue on the index. So I searched around in the code (took a while) and I found a page that did the time stamp stuff on the comments. I was able to get rid of the DATE, so it shows the only the time stamp, which is the DATE and the TIME. However, it shows up like this: at Tuesday October 7th, 2008 at 10:29pm I cannot for the life of me find where the first "at" comes from. Anyone have any ideas? |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Sep 2004
Hosted on Pass42
279 posts
Gave thanks: 4
Thanked 50 times
|
In the WordPress default theme there is a 'comment.php' file which contains the following code...
Code:
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
__________________
|
|
|
|
| This user thanks Rick for this great post! | fury (October 11th, 2008) |