Skip to content

Instantly share code, notes, and snippets.

@akamola
Last active November 5, 2016 09:01
Show Gist options
  • Save akamola/a2c7bbe8de757a2b3421 to your computer and use it in GitHub Desktop.
Save akamola/a2c7bbe8de757a2b3421 to your computer and use it in GitHub Desktop.
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