Skip to content

Commit 577c5d3

Browse files
committed
fix: correcting timestamp
1 parent c4d1975 commit 577c5d3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

aio_etsy_stats/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def __init__(self, shop: str, default_reset_hour: int = 14, scrape_interval_minu
103103
{type(self).__name__} for **{self.shop}**
104104
105105
-# Scraping for store metrics on host `{socket.gethostname()}`
106+
-# Current time is **{datetime.now():%Y-%m-%d %H:%M:%S%z}**
106107
-# Public IP is `{get_public_ip()}`
107108
-# Scraping using Selenium Chrome
108109
-# Scrapes run about every **{self.scrape_interval_minutes}** minutes

docker-compose.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ services:
3434
image: selenium/standalone-chrome:4.27
3535
container_name: aio_etsy_stats-selenium
3636
network_mode: "service:aio_etsy_stats-wireguard"
37+
environment:
38+
- PUID=1000
39+
- PGID=1000
40+
- TZ=America/Chicago
3741
depends_on:
3842
- aio_etsy_stats-wireguard
3943
restart: unless-stopped
@@ -47,6 +51,9 @@ services:
4751
- aio_etsy_stats-wireguard
4852
restart: unless-stopped
4953
environment:
54+
- PUID=1000
55+
- PGID=1000
56+
- TZ=America/Chicago
5057
- SELENIUM_HOST=localhost
5158
- SELENIUM_PORT=4444
5259
- ETSY_STORE_NAME=${ETSY_STORE_NAME}
@@ -56,4 +63,7 @@ services:
5663
- AIO_PASSWORD=${AIO_PASSWORD}
5764
- DISCORD_WEBHOOK=${DISCORD_WEBHOOK}
5865
- DISCORD_AVATAR_URL=${DISCORD_AVATAR_URL}
59-
- DEV_LOVE_NOTE=${DEV_LOVE_NOTE}
66+
- DEV_LOVE_NOTE=${DEV_LOVE_NOTE}
67+
volumes:
68+
- /etc/timezone:/etc/timezone:ro
69+
- /etc/localtime:/etc/localtime:ro

0 commit comments

Comments
 (0)