Skip to content

Commit a7c59af

Browse files
authored
Merge pull request #11 from faucetsdn/os-ken-3.1.0
Import os-ken 3.1.0 source
2 parents 09e7d56 + 3304625 commit a7c59af

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

os_ken/services/protocols/bgp/utils/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def log(stats_resource=None, stats_source=None, log_level=DEFAULT_LOG_LEVEL,
8585
kwargs[RESOURCE_NAME] = stats_resource.name
8686

8787
if TIMESTAMP not in kwargs:
88-
kwargs[TIMESTAMP] = datetime.datetime.utcfromtimestamp(
89-
time.time()).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
88+
kwargs[TIMESTAMP] = datetime.datetime.now(
89+
tz=datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
9090

9191
_STATS_LOGGER.log(log_level,
9292
json.dumps(kwargs))

releasenotes/source/2025.1.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
===========================
2+
2025.1 Series Release Notes
3+
===========================
4+
5+
.. release-notes::
6+
:branch: stable/2025.1

releasenotes/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:maxdepth: 1
77

88
unreleased
9+
2025.1
910
2024.2
1011
2024.1
1112
2023.2

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
hacking>=6.1.0,<6.2.0 # Apache-2.0
22

33
coverage>=4.4.1 # Apache-2.0
4-
python-subunit>=1.0.0 # Apache-2.0/BSD
54
oslotest>=3.2.0 # Apache-2.0
65
stestr>=1.0.0 # Apache-2.0
76
testtools>=2.2.0 # MIT

0 commit comments

Comments
 (0)