Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Version 0.2.2: Add support for passing unix timestamp as a string to …
Browse files Browse the repository at this point in the history
…amDateFormat filter
  • Loading branch information
urish committed Sep 28, 2013
1 parent 4f9cd8e commit 7c057a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.2 - 2013-09-29

- Add support for passing unix timestamp as a string to amDateFormat filter ([#14](https://github.com/urish/angular-moment/issues/14))

## 0.2.1 - 2013-09-13

- Fix an issue with tests failing on a different timezone
Expand All @@ -8,5 +12,5 @@
## 0.2.0 - 2013-08-22

- Add optional am-format attribute to am-time-ago ([#11](https://github.com/urish/angular-moment/issues/11))
- Add new amFormatDate filter ([#12](https://github.com/urish/angular-moment/issues/12))
- Add new amDateFormat filter ([#12](https://github.com/urish/angular-moment/issues/12))
- Add changelog file
4 changes: 2 additions & 2 deletions angular-moment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* angular-moment.js / v0.2.1 / (c) 2013 Uri Shaked / MIT Licence */
/* angular-moment.js / v0.2.2 / (c) 2013 Uri Shaked / MIT Licence */

angular.module('angularMoment', [])
.directive('amTimeAgo', ['$window', '$timeout', function ($window, $timeout) {
Expand Down Expand Up @@ -73,7 +73,7 @@ angular.module('angularMoment', [])

if(!isNaN(parseFloat(value)) && isFinite(value)) {
// Milliseconds since the epoch
value = new Date(parseInt(value, null));
value = new Date(parseInt(value, 10));
}
// else assume the given value is already a date

Expand Down
2 changes: 1 addition & 1 deletion angular-moment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-moment",
"version": "0.2.1",
"version": "0.2.2",
"description": "Angular.JS directives for Moment.JS (timeago alternative)",
"author": "Uri Shaked",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-moment",
"version": "0.2.1",
"version": "0.2.2",
"repository": {
"type": "git",
"url": "http://github.com/urish/angular-moment.git"
Expand Down

0 comments on commit 7c057a5

Please sign in to comment.