fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-02-04 07:59 am

[dw-free] Improper format of time passed to BML::last_mod_time (warning in the logs)

[commit: http://hg.dwscoalition.org/dw-free/rev/bfb304746e81]

http://bugs.dwscoalition.org/show_bug.cgi?id=3437

Pass in as unix time, not as a date string.

Patch by [personal profile] fu.

Files modified:
  • htdocs/admin/faq/readcat.bml
--------------------------------------------------------------------------------
diff -r f8088d524458 -r bfb304746e81 htdocs/admin/faq/readcat.bml
--- a/htdocs/admin/faq/readcat.bml	Fri Feb 04 12:36:34 2011 +0800
+++ b/htdocs/admin/faq/readcat.bml	Fri Feb 04 15:59:39 2011 +0800
@@ -63,7 +63,7 @@ body<=
     foreach my $faq ( sort { $a->sortorder <=> $b->sortorder } @faqs ) {
         my $q = $faq->question_html;
         next unless $q;
-        BML::note_mod_time( $faq->lastmodtime ); 
+        BML::note_mod_time( $faq->unixmodtime );
         $q =~ s/^\s+//; $q =~ s/\s+$//;
         $q =~ s!\n!<br />!g;
         my $s = ( LJ::is_enabled( 'faq_summaries') && $faq->has_summary )
--------------------------------------------------------------------------------