Skip to content

Instantly share code, notes, and snippets.

@aesnyder
Last active September 8, 2016 16:37
Show Gist options
  • Save aesnyder/4f5ee12bffd5369b385c to your computer and use it in GitHub Desktop.
Save aesnyder/4f5ee12bffd5369b385c to your computer and use it in GitHub Desktop.
Globally Configure Angular Date $filter to UTC
app.config ($provide) ->
$provide.decorator 'dateFilter', ($delegate) ->
(date, format, timezone) ->
$delegate.call this, date, format, if timezone then timezone else 'UTC'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment