Skip to content

Instantly share code, notes, and snippets.

@robfletcher
Created June 20, 2012 16:39
Show Gist options
  • Save robfletcher/2960842 to your computer and use it in GitHub Desktop.
Save robfletcher/2960842 to your computer and use it in GitHub Desktop.
Automatically display last deployment time in your Cloud Foundry app
eventCfUpdateStart = {
metadata.'cf.last.deployed' = new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
metadata.persist()
}
<p>Last updated: <g:formatDate date="${Date.parse(/yyyy-MM-dd'T'HH:mm:ssZ/, grailsApplication.metadata.'cf.last.deployed')}"/></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment