Skip to content

Commit

Permalink
chore(contrib/stats): fix datetime add (PundiAI#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored Feb 22, 2024
1 parent 2ff4973 commit a0ca810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/stats/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function datetime_since() {

function datetime_add() {
second=$(echo "${2:-0}" | bc)
python3 -c "import time; print(time.strftime('%Y-%m-%dT%H:%M:%S', time.gmtime(time.mktime(time.strptime('${1%.*}', '%Y-%m-%dT%H:%M:%S'))+$second)))"
python3 -c "import time; print(time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime(time.mktime(time.strptime('${1%.*}', '%Y-%m-%dT%H:%M:%S'))+$second)))"
}

function get_latest_block_and_time() {
Expand Down

0 comments on commit a0ca810

Please sign in to comment.