get system timezone (#6193)

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
Lars Hvam 2023-04-05 17:04:43 +02:00 committed by GitHub
parent 854eed70ba
commit 0a61914124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 15 deletions

View File

@ -49,6 +49,12 @@
"globalMacros": []
},
"rules": {
"strict_sql": false,
"cds_comment_style": true,
"change_if_to_case": false,
"expand_macros": true,
"unnecessary_return": false,
"fully_type_itabs": false,
"cds_legacy_view": true,
"superfluous_value": true,
"classic_exceptions_overlap": true,

View File

@ -26,12 +26,12 @@
]
},
"devDependencies": {
"@abaplint/cli": "^2.95.50",
"@abaplint/cli": "^2.97.4",
"@abaplint/database-sqlite": "^2.5.39",
"@abaplint/runtime": "^2.5.60",
"@abaplint/transpiler-cli": "^2.5.60",
"@abaplint/runtime": "^2.5.76",
"@abaplint/transpiler-cli": "^2.5.76",
"abapmerge": "^0.15.0",
"c8": "^7.13.0",
"eslint": "^8.36.0"
"eslint": "^8.37.0"
}
}

View File

@ -293,13 +293,21 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
METHOD class_constructor.
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
DATA lv_fm TYPE string.
lv_fm = 'GET_SYSTEM_TIMEZONE'.
TRY.
CALL METHOD ('CL_ABAP_TSTMP')=>get_system_timezone
RECEIVING
system_timezone = gv_time_zone.
CATCH cx_sy_dyn_call_illegal_method.
CALL FUNCTION lv_fm
IMPORTING
timezone = gv_time_zone
EXCEPTIONS
customizing_missing = 1
OTHERS = 2.
ASSERT sy-subrc = 0.
ENDTRY.
ENDMETHOD.

View File

@ -97,8 +97,6 @@
{"object": "ZCL_ABAPGIT_PERSIST_PACKAGES", "class": "ltcl_packages", "method": "test_package", "note": "ZABAPGIT table not existing, error cx_sy_dynamic_osql_semantics"},
{"object": "ZCL_ABAPGIT_AJSON", "class": "ltcl_json_to_abap", "method": "to_abap_array_of_arrays", "note": "Expected table to contain 2 rows, got 4"},
{"object": "ZCL_ABAPGIT_REQUIREMENT_HELPER", "class": "ltcl_lower_release", "method": "empty_patch", "note": "Void type: CVERS_SDU"},
{"object": "ZCL_ABAPGIT_REQUIREMENT_HELPER", "class": "ltcl_lower_release", "method": "lower_patch", "note": "Void type: CVERS_SDU"},
{"object": "ZCL_ABAPGIT_REQUIREMENT_HELPER", "class": "ltcl_lower_release", "method": "same_patch", "note": "Void type: CVERS_SDU"},
@ -154,8 +152,6 @@
{"object": "ZCL_ABAPGIT_FILE_DESERIALIZE", "class": "ltcl_prio_deserialization", "method": "xslt_before_clas", "note": "hmm, something with promises?"},
{"object": "ZCL_ABAPGIT_FILE_DESERIALIZE", "class": "ltcl_prio_deserialization", "method": "xslt_before_prog", "note": "hmm, something with promises?"},
{"object": "ZCL_ABAPGIT_OBJECT_INTF", "class": "ltcl_aff_metadata", "method": "serialize_default", "note": "??"},
{"object": "ZCL_ABAPGIT_DOT_ABAPGIT", "class": "ltcl_dot_abapgit", "method": "identity", "note": " https://github.com/open-abap/open-abap/issues/471 "},
{"object": "ZCL_ABAPGIT_VERSION", "class": "ltcl_version_parse", "method": "abapgit_version", "note": "Error: ReadReport, transpiler todo"},