Mercurial > hg > mgallery
comparison mgallery.php @ 245:8ddf84b459d3
Show timestamps in localized form.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 01 May 2018 16:00:40 +0300 |
parents | c649933173f8 |
children | 548a349bc015 |
comparison
equal
deleted
inserted
replaced
244:73348fa0bc85 | 245:8ddf84b459d3 |
---|---|
349 } | 349 } |
350 | 350 |
351 | 351 |
352 function mgTimeStr($stamp) | 352 function mgTimeStr($stamp) |
353 { | 353 { |
354 return date("d M Y (H:i:s)", $stamp); | 354 global $pageLang, $pageCharset; |
355 // return date("d M Y (H:i:s)", $stamp); | |
356 $pageLocale = strtolower($pageLang)."_".strtoupper($pageLang).".".$pageCharset; | |
357 setlocale(LC_TIME, $pageLocale); | |
358 return strftime("%d %b %Y (%H:%M:%S)", $stamp); | |
355 } | 359 } |
356 | 360 |
357 | 361 |
358 function mgFileSize($size) | 362 function mgFileSize($size) |
359 { | 363 { |