Zzyzx Wolfe (zzyzx) wrote in component_help,
Zzyzx Wolfe
zzyzx
component_help

  • Mood:
  • Music:

Component Comments in Local Time.

This is assuming you know what you're doing. I'm sure someone else can come along and make a simpler tutorial, but this will get it done. Sorry. Anyway, LiveJournal has implemented local time. If your timezone is set in your userinfo, it'll show comments in your timezone in all styles that support it. In order to make Component support it, you have to be using the comment headers override.

Simply replace:
print $comment.time->date_format("long")+" - "+$comment.time->time_format();
with:
print $comment->time_display();

You can also use any date format you wish, thus:
print $comment->time_display("%%day%%, %%month%% %%dayord%%, %%yyyy%%", "%%hh%%:%%min%% %%A%%M");
Tags: admin: deprecated, user: zzyzx
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic
  • 15 comments