Skip to content

Instantly share code, notes, and snippets.

@akamola

akamola/dateLocal.php

Last active Nov 5, 2016
Embed
What would you like to do?
MODX: Snippet for an output modifier to localize dates (see: http://goo.gl/HUpyFg)
<?php
setlocale(LC_ALL, 'en_US');
return strftime($options, $input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment