SResok
2/8/2018 - 1:04 PM

Custom strftime windows

Custom strftime windows

<?php
setlocale(LC_ALL, 'nl_NL');
function customStrftime($format){
	if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
		setlocale(LC_ALL, 'nld_nld');
		$format = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $format);
	}
	return $format;
}
?>