11from django .conf import settings
22from django .core .management .base import BaseCommand
33
4+ from datetime import datetime
45from configuration .config import config
56from utxo_indexer .indexer import get_indexer_client
67from utxo_indexer .models .config import Version
@@ -17,15 +18,15 @@ def handle(self, *args, **options):
1718 "node_version" : node_version ,
1819 "git_tag" : settings .PROJECT_VERSION ,
1920 "git_hash" : settings .PROJECT_COMMIT_HASH ,
20- "build_date" : settings .PROJECT_BUILD_DATE .timestamp (),
21+ "build_date" : datetime . fromisoformat ( settings .PROJECT_BUILD_DATE ) .timestamp (),
2122 "num_confirmations" : config .NUMBER_OF_BLOCK_CONFIRMATIONS ,
2223 "history_seconds" : config .PRUNE_KEEP_DAYS * 24 * 60 * 60 ,
2324 },
2425 create_defaults = {
2526 "node_version" : node_version ,
2627 "git_tag" : settings .PROJECT_VERSION ,
2728 "git_hash" : settings .PROJECT_COMMIT_HASH ,
28- "build_date" : settings .PROJECT_BUILD_DATE .timestamp (),
29+ "build_date" : datetime . fromisoformat ( settings .PROJECT_BUILD_DATE ) .timestamp (),
2930 "num_confirmations" : config .NUMBER_OF_BLOCK_CONFIRMATIONS ,
3031 "history_seconds" : config .PRUNE_KEEP_DAYS * 24 * 60 * 60 ,
3132 },
0 commit comments