Easier to read uptime
This commit is contained in:
		
							parent
							
								
									d265303a94
								
							
						
					
					
						commit
						1bffd9e49d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -68,7 +68,7 @@ new Vue({
 | 
				
			||||||
      this.fetchingUptime = showAsFetching;
 | 
					      this.fetchingUptime = showAsFetching;
 | 
				
			||||||
      try {
 | 
					      try {
 | 
				
			||||||
        let { data } = await axios.get('/api/uptime');
 | 
					        let { data } = await axios.get('/api/uptime');
 | 
				
			||||||
        this.uptime = data.uptime;
 | 
					        this.uptime = moment(data.uptime, 'HH:MM DD-MM-YYYY').fromNow();
 | 
				
			||||||
        this.fetchingUptime = false;
 | 
					        this.fetchingUptime = false;
 | 
				
			||||||
      } catch (err) { throw new Error(err); }
 | 
					      } catch (err) { throw new Error(err); }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue