Update debug time stamp according to the official recommendation from reproducible builds iniative by @paulfertser suggestion

This commit is contained in:
Ivan Zorin
2025-03-17 00:06:04 +03:00
parent 03ec177058
commit a66dbeb12b

View File

@@ -10,7 +10,7 @@ import pickle
import re import re
import subprocess import subprocess
import sys import sys
from datetime import datetime import time
from pathlib import Path from pathlib import Path
from typing import Dict, List, Optional, TextIO, Tuple, Union from typing import Dict, List, Optional, TextIO, Tuple, Union
from dataclasses import dataclass from dataclasses import dataclass
@@ -152,7 +152,10 @@ def get_constants() -> List[Tuple[str, str]]:
def get_debug_menu() -> List[str]: def get_debug_menu() -> List[str]:
return [ return [
datetime.today().strftime("%Y%m%d %H%M%S"), time.strftime(
"%Y%m%d %H%M%S",
time.gmtime(int(os.environ.get("SOURCE_DATE_EPOCH", time.time()))),
),
"ID ", "ID ",
"ACC ", "ACC ",
"PWR ", "PWR ",