File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
- from datetime import datetime
3
+ import datetime
4
4
5
5
from docker .models .containers import Container
6
6
@@ -42,7 +42,7 @@ def tag_value(container: Container) -> str:
42
42
class DateTagger (TaggerInterface ):
43
43
@staticmethod
44
44
def tag_value (container : Container ) -> str :
45
- return datetime .utcnow ( ).strftime ("%Y-%m-%d" )
45
+ return datetime .datetime . now ( datetime . UTC ).strftime ("%Y-%m-%d" )
46
46
47
47
48
48
class UbuntuVersionTagger (TaggerInterface ):
Original file line number Diff line number Diff line change 17
17
LOGGER = logging .getLogger (__name__ )
18
18
19
19
# We use a manifest creation timestamp, which happens right after a build
20
- BUILD_TIMESTAMP = datetime .datetime .utcnow ( ).isoformat ()[:- 7 ] + "Z"
20
+ BUILD_TIMESTAMP = datetime .datetime .now ( datetime . UTC ).isoformat ()[:- 13 ] + "Z"
21
21
MARKDOWN_LINE_BREAK = "<br />"
22
22
23
23
You can’t perform that action at this time.
0 commit comments