mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
Merge pull request #1593 from christianguenter2/1571
add timezone to overview page
This commit is contained in:
commit
99aab05fe6
|
@ -42,7 +42,8 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
|||
DATA:
|
||||
mv_order_by TYPE string,
|
||||
mv_order_descending TYPE char01,
|
||||
mv_filter TYPE string.
|
||||
mv_filter TYPE string,
|
||||
mv_time_zone TYPE timezone.
|
||||
|
||||
METHODS:
|
||||
render_text_input
|
||||
|
@ -194,6 +195,14 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
ms_control-page_title = |Repository Overview|.
|
||||
mv_order_by = |NAME|.
|
||||
|
||||
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
|
||||
IMPORTING
|
||||
timezone = mv_time_zone
|
||||
EXCEPTIONS
|
||||
customizing_missing = 1
|
||||
OTHERS = 2.
|
||||
ASSERT sy-subrc = 0.
|
||||
|
||||
ENDMETHOD. " constructor.
|
||||
|
||||
|
||||
|
@ -202,7 +211,6 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
DATA: ls_overview LIKE LINE OF rt_overview,
|
||||
lo_repo_srv TYPE REF TO zcl_abapgit_repo,
|
||||
lo_user TYPE REF TO zcl_abapgit_persistence_user,
|
||||
lv_time_zone TYPE timezone,
|
||||
lv_date TYPE d,
|
||||
lv_time TYPE t.
|
||||
|
||||
|
@ -210,17 +218,6 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
|
||||
lo_user = zcl_abapgit_persistence_user=>get_instance( ).
|
||||
|
||||
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
|
||||
IMPORTING
|
||||
timezone = lv_time_zone
|
||||
EXCEPTIONS
|
||||
customizing_missing = 1
|
||||
OTHERS = 2.
|
||||
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
LOOP AT it_repo_list ASSIGNING <ls_repo>.
|
||||
|
||||
CLEAR: ls_overview.
|
||||
|
@ -237,7 +234,7 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
|
||||
IF <ls_repo>-created_at IS NOT INITIAL.
|
||||
CONVERT TIME STAMP <ls_repo>-created_at
|
||||
TIME ZONE lv_time_zone
|
||||
TIME ZONE mv_time_zone
|
||||
INTO DATE lv_date
|
||||
TIME lv_time.
|
||||
|
||||
|
@ -407,7 +404,7 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
io_html->add( |<th>Package</th>| ).
|
||||
io_html->add( |<th>Branch name</th>| ).
|
||||
io_html->add( |<th>Creator</th>| ).
|
||||
io_html->add( |<th>Created at</th>| ).
|
||||
io_html->add( |<th>Created at [{ mv_time_zone }]</th>| ).
|
||||
io_html->add( |<th></th>| ).
|
||||
io_html->add( '</tr>' ).
|
||||
io_html->add( '</thead>' ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user