blogs made simple time stamp

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

blogs made simple time stamp

Post by tonypb »

I've installed Blogs Made Simple and everything so far so good but... i cant figure out how to change the time stamp from military time to normal time... is this a general setting for CMS or blog? im still extremely new to this so... any help will be extremely appreciated ;D
patino-burch design
Anthony Patino-Burch
nivekiam

Re: blogs made simple time stamp

Post by nivekiam »

I'll leave my opinion out of this....

1) The latest version of the Blogs Made Simple module is only available via XML file.  Which means you have to have your Modules directory writeable by the web server.  Which means (in a lot of hosting environments) that once it's installed you, yourself cannot edit any of those files (by default).

If you can't edit the file, you'll need to use something like this:



Save that as a php file that you can access on your website via your browser.  Then you can edit the file.

2) The date format it pulls up is hard coded in the module, there is no setting for this.  It's obviously a personal preference of the developer.

You would edit line 490
Change:
    $datetime.=date("H.i",$unixtime);

to:
    $datetime.=date("h.i",$unixtime);

That would give it a 12 hour time.  See this page for more options: http://us3.php.net/date

Once done, I would probably set the permissions on the file back to the way they were, probably  644

User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: blogs made simple time stamp

Post by tonypb »

;D PERFECT... worked GREAT!  ;D
patino-burch design
Anthony Patino-Burch
Post Reply

Return to “CMSMS Core”