Changeset 1448 for trunk


Ignore:
Timestamp:
11/01/15 23:38:08 (9 years ago)
Author:
nanardon
Message:

Fix date reporting

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Stat.pm

    r1446 r1448  
    6060    } 
    6161 
    62     my $date = POSIX::strftime('%Y-%m-%d %H:%M', localtime); 
     62    my $date = POSIX::strftime('%Y-%m-%d %I:%M%p', localtime); 
    6363    foreach my $val (sort keys %$res) { 
    6464        push(@{ $lines{$val} }, [ $date , $res->{$val} + 0 ]); 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Stat.pm

    r1446 r1448  
    203203 
    204204    my $sth = $self->db->prepare(q{ 
    205         SELECT count, value, to_char(tstamp, 'YYYY-MM-DD HH24:MI') as d from statsentry join 
     205        SELECT count, value, to_char(tstamp, 'YYYY-MM-DD HH12:MIAM') as d from statsentry join 
    206206                      statvalues 
    207207            on statsentry.id = statvalues.sid 
Note: See TracChangeset for help on using the changeset viewer.