Date Format

May 03, 2009 20:53

I want to change my date to appear like May 3rd, 2009 at 6:00 pm. I've checked out the tags but I can't seem to get things to work. I already have a themelayer. Would I have to merge something with it? I've posted it below. I have a paid account.

layerinfo "type" = "theme ( Read more... )

date format, solved

Leave a comment

Comments 36

complications_g May 4 2009, 02:18:42 UTC
You need to copy&paste the print_entry(Page p, Entry e, Color bgcolor, Color fgcolor) function from the FS layer source, and then find the # Date, time, subject section.

Find this line: print $e.time->date_format("%%dd%% %%month%% %%yyyy%%"); and change it to whatever format you'd like. Here is a reference list.

Reply

steadyradiance May 4 2009, 02:34:19 UTC
I copy that whole thing and add it to the bottom of the themelayer I have now?

Reply

complications_g May 4 2009, 02:39:23 UTC
Just the print_entry fuction, which goes down until you see the next function, but yep, just add it to the end of your theme layer.

Reply

steadyradiance May 4 2009, 02:42:53 UTC
It may be that it's late or I'm just slow with css today but where is just the print_entry in that link? Which part?

Reply


Leave a comment

Up