php strftime('%P') on osx gives P instead of pm with setlocale(LC_TIME, 'en_CA') -
this code ...
<?php setlocale(lc_time, 'en_ca'); $time = strtotime("07:00 pm"); echo strftime('%l:%m %p', $time); ?>
provides result on osx 10.6.4 stock php 5.3.2 or php 5.2.13 macports:
7:00 p
however desired result on ubuntu 9.10 php 5.2.10:
7:00 pm
why difference? how can fix it?
Comments
Post a Comment