Last active
September 8, 2016 16:37
-
-
Save aesnyder/4f5ee12bffd5369b385c to your computer and use it in GitHub Desktop.
Globally Configure Angular Date $filter to UTC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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