File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4545 type=ref,event=branch
4646 type=ref,event=tag
4747 type=ref,event=pr
48- type=sha,prefix=sha-,format=short
4948 - name : Build and push
5049 uses : docker/build-push-action@v6.18.0
5150 with :
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ FROM python:3.13-trixie
22LABEL org.opencontainers.image.source=https://github.com/umati/Sample-Server-asyncio
33
44RUN apt update && \
5- apt install -yy build-essential \
5+ apt install -yy --no-install-recommends --no-install-suggests \
6+ build-essential \
67 python3-dev \
78 libssl-dev \
89 libffi-dev \
Original file line number Diff line number Diff line change 1414import logging
1515import time
1616import random
17- from datetime import datetime
17+ from datetime import datetime , timezone
1818from asyncua import Server , ua
1919from asyncua .common .ua_utils import value_to_datavalue
2020from asyncua .common .instantiate_util import instantiate
@@ -174,7 +174,7 @@ async def main():
174174 Value = dv .Value ,
175175 StatusCode_ = dv .StatusCode_ ,
176176 SourceTimestamp = dv .SourceTimestamp ,
177- ServerTimestamp = datetime .now (datetime . UTC )
177+ ServerTimestamp = datetime .now (timezone . utc )
178178 )
179179 await server .write_attribute_value (item [0 ][0 ].nodeid , new_dv , ua .AttributeIds .Value )
180180
You can’t perform that action at this time.
0 commit comments