mirror of
				https://github.com/Thor77/TeamspeakStats.git
				synced 2025-11-03 15:22:45 -05:00 
			
		
		
		
	WIP Auto timezone conversion
This commit is contained in:
		
							parent
							
								
									5db1345717
								
							
						
					
					
						commit
						43f63824d2
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
					@ -6,11 +6,18 @@
 | 
				
			||||||
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
 | 
					  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
 | 
				
			||||||
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/hint.css/2.4.1/hint.min.css" integrity="sha256-7KczUWqIa/6KaIKtNfG18eilVQR4vJ4S9SSiDAplUwc=" crossorigin="anonymous">
 | 
					  <link rel="stylesheet" href="https://cdn.jsdelivr.net/hint.css/2.4.1/hint.min.css" integrity="sha256-7KczUWqIa/6KaIKtNfG18eilVQR4vJ4S9SSiDAplUwc=" crossorigin="anonymous">
 | 
				
			||||||
  <meta name="referrer" content="no-referrer">
 | 
					  <meta name="referrer" content="no-referrer">
 | 
				
			||||||
 | 
					  <script src="https://cdn.jsdelivr.net/momentjs/2.17.1/moment.min.js" integrity="sha256-Gn7MUQono8LUxTfRA0WZzJgTua52Udm1Ifrk5421zkA=" crossorigin="anonymous"></script>
 | 
				
			||||||
 | 
					  <script src="https://cdn.jsdelivr.net/momentjs.timezone/0.5.11/moment-timezone.min.js" integrity="sha256-bQKm6Vad2GIsQ5ap2TI/hKKtRSglZhGfFINwoh/sQ48=" crossorigin="anonymous"></script>
 | 
				
			||||||
  <style type="text/css">
 | 
					  <style type="text/css">
 | 
				
			||||||
    body {
 | 
					    body {
 | 
				
			||||||
      padding-top: 50px;
 | 
					      padding-top: 50px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  </style>
 | 
					  </style>
 | 
				
			||||||
 | 
					  <script type="text/javascript">
 | 
				
			||||||
 | 
					    function convertToLocalTimezone(dateString) {
 | 
				
			||||||
 | 
					      return Date(dateString).toLocaleString()
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  </script>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
<div class="container-fluid">
 | 
					<div class="container-fluid">
 | 
				
			||||||
| 
						 | 
					@ -31,7 +38,7 @@
 | 
				
			||||||
    <h1 class="page-header" onclick="window.location = '#sid{{ server.sid }}'" id="sid{{ server.sid }}">Server {{ server.sid }}</h1>
 | 
					    <h1 class="page-header" onclick="window.location = '#sid{{ server.sid }}'" id="sid{{ server.sid }}">Server {{ server.sid }}</h1>
 | 
				
			||||||
    {% include 'stats.jinja2' %}
 | 
					    {% include 'stats.jinja2' %}
 | 
				
			||||||
  {% endfor %}
 | 
					  {% endfor %}
 | 
				
			||||||
  <small>Generated by <a href="https://github.com/Thor77/TeamspeakStats" rel="noopener">TeamspeakStats</a> at {{ creation_time|frmttime }}</small>
 | 
					  <small>Generated by <a href="https://github.com/Thor77/TeamspeakStats" rel="noopener">TeamspeakStats</a> at <div class="timestamp">{{ creation_time|frmttime }}</div></small>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,7 @@
 | 
				
			||||||
    {% set id = [headline_id, client.nick|striptags]|join('.') %}
 | 
					    {% set id = [headline_id, client.nick|striptags]|join('.') %}
 | 
				
			||||||
    <li id="{{ id }}" onclick="window.location = '#{{ id }}'" class="list-group-item{{ ' list-group-item-success' if client.connected else loop.cycle('" style="background-color: #eee;', '') }}">
 | 
					    <li id="{{ id }}" onclick="window.location = '#{{ id }}'" class="list-group-item{{ ' list-group-item-success' if client.connected else loop.cycle('" style="background-color: #eee;', '') }}">
 | 
				
			||||||
      <span class="hint--right" data-hint="{{ client.nick_history|join(', ') }}">{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span>
 | 
					      <span class="hint--right" data-hint="{{ client.nick_history|join(', ') }}">{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span>
 | 
				
			||||||
      <span class="badge"><div{% if not client.connected and headline == 'Onlinetime' %} class="hint--left" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ value }}</div></span>
 | 
					      <span class="badge"><div{% if not client.connected and headline == 'Onlinetime' %} class="hint--left timestamp-hint" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ value }}</div></span>
 | 
				
			||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
    {% endfor %}
 | 
					    {% endfor %}
 | 
				
			||||||
  </ul>
 | 
					  </ul>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue