Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Ensure that passing in date objects works with IE6
Browse files Browse the repository at this point in the history
  • Loading branch information
GregDThomas committed Jul 30, 2013
1 parent 4a12df5 commit 240779b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.localtime-0.7.0-SNAPSHOT.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
},

toLocalTime: function (timeField, timeFormat) {
if( timeField.constructor.name !== 'Date' ) {
if( Object.prototype.toString.call(timeField) !== '[object Date]' ) {
timeField = $.localtime.parseISOTimeString(timeField);
}
if( timeFormat === '' ) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.localtime-0.7.0-SNAPSHOT.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 src/jquery.localtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},

toLocalTime: function (timeField, timeFormat) {
if( timeField.constructor.name !== 'Date' ) {
if( Object.prototype.toString.call(timeField) !== '[object Date]' ) {
timeField = $.localtime.parseISOTimeString(timeField);
}
if( timeFormat === '' ) {
Expand Down

0 comments on commit 240779b

Please sign in to comment.