Is there a better way to ignore an timezone in Angularjs:
\"2014-01-18 14:30:00\" Instead Of \"2014-01-18 15:30:00\"
function Scoper($scope) { $
I Have the solution:
app.filter('timezone', function(){ return function (val, offset) { if (val != null && val.length > 16) { return val.substring(0, 16) } return val; }; });
template:
{{ date | timezone | date:'yyyy-MM-dd HH:mm:ss' }}
http://jsfiddle.net/samibel/n4CuQ/