how to timestamp your build
by ben hockey

this cookie is going to show you how to dynamically timestamp your build using the version property of your profile. thanks to rhino, your profile is ‘live’ javascript so simply update the version like this:

version: "1.3.2." + (+(new Date()))

this will stamp your version with the Date when your build is run. make sure you include the extra “.” before you append the Date.

then, inside your application, you can get the Date back like so:

var stamp = new Date(parseInt(dojo.version.flag))
This entry was posted on Saturday, September 26th, 2009 at 3:01 am and is filed under Dojo Cookies. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.