fix timezone handling
This commit is contained in:
		
							parent
							
								
									f1512a6ed7
								
							
						
					
					
						commit
						f4719be133
					
				| @ -50,8 +50,8 @@ function (config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshsta | |||||||
|       }) |       }) | ||||||
| 
 | 
 | ||||||
|       nodes.forEach( function(node) { |       nodes.forEach( function(node) { | ||||||
|         node.firstseen = moment.utc(node.firstseen) |         node.firstseen = moment.utc(node.firstseen).local() | ||||||
|         node.lastseen = moment.utc(node.lastseen) |         node.lastseen = moment.utc(node.lastseen).local() | ||||||
|       }) |       }) | ||||||
| 
 | 
 | ||||||
|       var now = moment() |       var now = moment() | ||||||
| @ -105,7 +105,7 @@ function (config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshsta | |||||||
|       }) |       }) | ||||||
| 
 | 
 | ||||||
|       return { now: now, |       return { now: now, | ||||||
|                timestamp: data[0].timestamp, |                timestamp: moment.utc(data[0].timestamp).local(), | ||||||
|                nodes: { |                nodes: { | ||||||
|                  all: nodes, |                  all: nodes, | ||||||
|                  new: newnodes, |                  new: newnodes, | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| define(["moment"], function (moment) { | define(function () { | ||||||
|   return function () { |   return function () { | ||||||
|     var self = this |     var self = this | ||||||
|     var p |     var p | ||||||
| @ -17,7 +17,7 @@ define(["moment"], function (moment) { | |||||||
|                       totalGateways + " Gateways" |                       totalGateways + " Gateways" | ||||||
| 
 | 
 | ||||||
|       p.appendChild(document.createElement("br")) |       p.appendChild(document.createElement("br")) | ||||||
|       p.appendChild(document.createTextNode("Diese Daten sind von " + moment(d.timestamp).format("LLLL") + ".")) |       p.appendChild(document.createTextNode("Diese Daten sind von " + d.timestamp.format("LLLL") + ".")) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     self.render = function (el) { |     self.render = function (el) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user