summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/cometd/timestamp.js
blob: 961b0c568360ea19a16346647389c8e7d63976ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//>>built
// wrapped by build app
define("dojox/cometd/timestamp", ["dijit","dojo","dojox","dojo/require!dojox/cometd/_base"], function(dijit,dojo,dojox){
dojo.provide("dojox.cometd.timestamp");
dojo.require("dojox.cometd._base");

// A cometd extension that adds a timestamp to every message
dojox.cometd._extendOutList.push(function(msg){
	msg.timestamp = new Date().toUTCString();
	return msg
});

});