Show
Ignore:
Timestamp:
12/26/2007 07:35:04 AM (13 months ago)
Author:
Geert
Message:
  • Database: fixed float related bug. Certain locales (nl_NL and probably many other European) display floats with a comma "," as decimal separator. This caused invalid SQL syntax, of course. The escape() function now converts floats to be non-locale aware.
  • Calendar: strftime() is locale aware, you don't even need a translation file for the months
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana_calendar.php

    r1611 r1615  
    1717 
    1818<table class="calendar"> 
    19 <caption><?php echo date('F Y', mktime(1, 0, 0, $month, 1, $year)) ?></caption> 
     19<caption><?php echo strftime('%B %Y', mktime(1, 0, 0, $month, 1, $year)) ?></caption> 
    2020<tr> 
    2121<?php foreach ($headings as $day): ?> 
     
    3535?> 
    3636<td><?php echo $day[0] ?></td> 
    37 <?php endif; ?> 
     37<?php endif ?> 
    3838<?php endforeach ?> 
    3939</tr>