I wanted to improve the ability to change an entry's date
format, so I think I came up with a decent solution. The problem
before, was that I needed to find a simple way to read in the
DATE_CMD variable from blog.conf, so I just relied
upon whatever "date" spat out. I never thought of testing it with a
custom date string, but when I did, I was surprised that it didn't
work. So, I came up with a quick and dirty solution; putting
backquotes into blog.conf's
I originally intended the
DATE_CMD variable to be
equal to a single command, so it wouldn't be too "date" command
specific. I finally, just embraced the "date" comand in the end.
DATE_CMD variable would need some extra help from
the script, to be able to process the date string, so I wrote a
function to filter the date string to more of an executable format
and then filter the output back to normal.
DATE_CMD variable had to be renamed for a more
logical fit, so I renamed it to
insted of "
`date '+%B %d %r'`",
DATE_FORMAT will consists only of the date's string
%B %d %r". The date command is called within the
function with the custom
My changes can be found in the unstable version, from my downloads page. Now, I can finally get some rest!
If you really, really want to comment, please mail email@example.com