mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Merge branch 'timestamp' into 'master'
Fix added type Closes #1012 See merge request fdroid/fdroidserver!1152
This commit is contained in:
		
						commit
						57c8dddead
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -34,7 +34,7 @@ import json
 | 
			
		|||
import time
 | 
			
		||||
import yaml
 | 
			
		||||
import copy
 | 
			
		||||
from datetime import datetime
 | 
			
		||||
from datetime import datetime, timezone
 | 
			
		||||
from argparse import ArgumentParser
 | 
			
		||||
from pathlib import Path
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1167,7 +1167,7 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
 | 
			
		|||
 | 
			
		||||
        if use_date_from_file:
 | 
			
		||||
            timestamp = stat.st_ctime
 | 
			
		||||
            default_date_param = time.gmtime(time.mktime(datetime.fromtimestamp(timestamp).timetuple()))
 | 
			
		||||
            default_date_param = datetime.fromtimestamp(timestamp, tz=timezone.utc)
 | 
			
		||||
        else:
 | 
			
		||||
            default_date_param = None
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue