OSDN Git Service

rename Util::Formatters::format_datetime() to datetime_to_string()
[newslash/newslash.git] / src / newslash_web / lib / Newslash / Model / Comments.pm
index c466dee..69453d4 100644 (file)
@@ -7,7 +7,7 @@ use Mojo::Log;
 use bytes qw();
 use Digest::MD5 qw(md5_hex);
 use Encode;
-use Newslash::Util::Formatters qw(format_datetime);
+use Newslash::Util::Formatters qw(datetime_to_string);
 
 #========================================================================
 
@@ -170,7 +170,7 @@ sub _generalize {
     $c->{title} = $c->{subject};
     $c->{time} = $c->{date};
     $c->{introtext} = $c->{comment};
-    $c->{date_string} = format_datetime($c->{date});
+    $c->{date_string} = datetime_to_string($c->{date});
 
     #my $max_weight = 0;
     #for my $t (@{$c->{topics}}) {