File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
netbox_script_manager/api Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 68
68
69
69
# 0.3.12
70
70
71
- * Allow editing of class_name and module_path on ScriptInstance to allow the preservation of ScriptExecutions if the script is moved/renamed.
71
+ * Allow editing of class_name and module_path on ScriptInstance to allow the preservation of ScriptExecutions if the script is moved/renamed.
72
+
73
+ # 0.3.13
74
+
75
+ * Fix timezone support of script log message display
Original file line number Diff line number Diff line change 1
1
from django .template .defaultfilters import date as date_filter
2
+ from django .templatetags .tz import localtime
2
3
from drf_spectacular .types import OpenApiTypes
3
4
from drf_spectacular .utils import extend_schema_field
4
5
from netbox .api .fields import ChoiceField
@@ -27,7 +28,7 @@ class FormattedDateTimeField(serializers.Field):
27
28
DATE_FORMAT = get_config ().DATETIME_FORMAT
28
29
29
30
def to_representation (self , value ):
30
- return date_filter (value , self .DATE_FORMAT )
31
+ return date_filter (localtime ( value ) , self .DATE_FORMAT )
31
32
32
33
33
34
class ScriptInstanceSerializer (NetBoxModelSerializer ):
You can’t perform that action at this time.
0 commit comments