Permalink
Browse files

minor change to use getDueDate() function

  • Loading branch information...
1 parent 3853f31 commit 7afb1b7d08fd7cc0bc8156e5cc89dfdaee304dee @kotfic kotfic committed Apr 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/assembla_spaces.js
View
4 js/assembla_spaces.js
@@ -101,8 +101,8 @@ AssemblaApp.Views.Ticket_Accordion_Element = Backbone.View.extend({
t.date_string = "";
t.date_class = "";
- if( this.model.get("due_date") ){
- var d = new Date(this.model.get("due_date"));
+ if( this.model.getDueDate() ){
+ var d = new Date(this.model.getDueDate());
var current_date = new Date();
t.date_string = ( parseInt(d.getUTCMonth()) + 1 ) + "/" + d.getUTCDate() + "/" + d.getUTCFullYear();
t.date_class = (d < current_date) ? "past_due" : '';

0 comments on commit 7afb1b7

Please sign in to comment.