Created
March 30, 2015 13:04
-
-
Save ErisDS/02bf3731beb363933594 to your computer and use it in GitHub Desktop.
Override dates in a Ghost theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var $dates = $('.post-date'); | |
$dates.each(function (i, date) { | |
var $date = $(date), | |
newDate = moment($date.attr('datetime')).tz('Europe/London').format('DD MMMM YYYY HH:mm'); | |
$date.html(newDate); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment