Skip to content

Commit

Permalink
[FIX] Use Moment.js to format start_date of job posting
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejbartas committed Mar 5, 2014
1 parent 8b3c618 commit 08232fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/models/job_posting.js.em
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ class PickwickApp.JobPosting extends Ember.Object

start_date_show:( ->
if @start_date
d = new Date(Date.parse(@start_date))
"#{d.getDay()}. #{d.getMonth()}. #{d.getFullYear()}"
moment(@start_date).format("D. M. YYYY")
else
""
).property('start_date')

0 comments on commit 08232fd

Please sign in to comment.