mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Fix bad time formatting and update changelog
This commit is contained in:
		
							parent
							
								
									498088e678
								
							
						
					
					
						commit
						c4d328c1cd
					
				@ -1,4 +1,12 @@
 | 
			
		||||
export const CHANGELOG = [
 | 
			
		||||
    {
 | 
			
		||||
        version: "1.1.19",
 | 
			
		||||
        date: "unreleased",
 | 
			
		||||
        entries: [
 | 
			
		||||
            "Allow holding ALT in belt planner to reverse direction (by jakobhellermann)",
 | 
			
		||||
            "Clear cursor when trying to pipette the same building twice (by hexy)",
 | 
			
		||||
        ],
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        version: "1.1.18",
 | 
			
		||||
        date: "27.06.2020",
 | 
			
		||||
 | 
			
		||||
@ -879,17 +879,17 @@ export function formatSecondsToTimeAgo(secs) {
 | 
			
		||||
    const hours = Math.floor(minutes / 60);
 | 
			
		||||
    const days = Math.floor(hours / 24);
 | 
			
		||||
 | 
			
		||||
    if (seconds <= 60) {
 | 
			
		||||
    if (seconds < 60) {
 | 
			
		||||
        if (seconds <= 1) {
 | 
			
		||||
            return T.global.time.oneSecondAgo;
 | 
			
		||||
        }
 | 
			
		||||
        return T.global.time.xSecondsAgo.replace("<x>", "" + seconds);
 | 
			
		||||
    } else if (minutes <= 60) {
 | 
			
		||||
    } else if (minutes < 60) {
 | 
			
		||||
        if (minutes <= 1) {
 | 
			
		||||
            return T.global.time.oneMinuteAgo;
 | 
			
		||||
        }
 | 
			
		||||
        return T.global.time.xMinutesAgo.replace("<x>", "" + minutes);
 | 
			
		||||
    } else if (hours <= 60) {
 | 
			
		||||
    } else if (hours < 24) {
 | 
			
		||||
        if (hours <= 1) {
 | 
			
		||||
            return T.global.time.oneHourAgo;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user