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 6868
6969# 0.3.12
7070
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 11from django .template .defaultfilters import date as date_filter
2+ from django .templatetags .tz import localtime
23from drf_spectacular .types import OpenApiTypes
34from drf_spectacular .utils import extend_schema_field
45from netbox .api .fields import ChoiceField
@@ -27,7 +28,7 @@ class FormattedDateTimeField(serializers.Field):
2728 DATE_FORMAT = get_config ().DATETIME_FORMAT
2829
2930 def to_representation (self , value ):
30- return date_filter (value , self .DATE_FORMAT )
31+ return date_filter (localtime ( value ) , self .DATE_FORMAT )
3132
3233
3334class ScriptInstanceSerializer (NetBoxModelSerializer ):
You can’t perform that action at this time.
0 commit comments