mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +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:
|
DATA:
|
||||||
mv_order_by TYPE string,
|
mv_order_by TYPE string,
|
||||||
mv_order_descending TYPE char01,
|
mv_order_descending TYPE char01,
|
||||||
mv_filter TYPE string.
|
mv_filter TYPE string,
|
||||||
|
mv_time_zone TYPE timezone.
|
||||||
|
|
||||||
METHODS:
|
METHODS:
|
||||||
render_text_input
|
render_text_input
|
||||||
|
@ -194,6 +195,14 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
ms_control-page_title = |Repository Overview|.
|
ms_control-page_title = |Repository Overview|.
|
||||||
mv_order_by = |NAME|.
|
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.
|
ENDMETHOD. " constructor.
|
||||||
|
|
||||||
|
|
||||||
|
@ -202,7 +211,6 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
DATA: ls_overview LIKE LINE OF rt_overview,
|
DATA: ls_overview LIKE LINE OF rt_overview,
|
||||||
lo_repo_srv TYPE REF TO zcl_abapgit_repo,
|
lo_repo_srv TYPE REF TO zcl_abapgit_repo,
|
||||||
lo_user TYPE REF TO zcl_abapgit_persistence_user,
|
lo_user TYPE REF TO zcl_abapgit_persistence_user,
|
||||||
lv_time_zone TYPE timezone,
|
|
||||||
lv_date TYPE d,
|
lv_date TYPE d,
|
||||||
lv_time TYPE t.
|
lv_time TYPE t.
|
||||||
|
|
||||||
|
@ -210,17 +218,6 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
|
|
||||||
lo_user = zcl_abapgit_persistence_user=>get_instance( ).
|
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>.
|
LOOP AT it_repo_list ASSIGNING <ls_repo>.
|
||||||
|
|
||||||
CLEAR: ls_overview.
|
CLEAR: ls_overview.
|
||||||
|
@ -237,7 +234,7 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
|
|
||||||
IF <ls_repo>-created_at IS NOT INITIAL.
|
IF <ls_repo>-created_at IS NOT INITIAL.
|
||||||
CONVERT TIME STAMP <ls_repo>-created_at
|
CONVERT TIME STAMP <ls_repo>-created_at
|
||||||
TIME ZONE lv_time_zone
|
TIME ZONE mv_time_zone
|
||||||
INTO DATE lv_date
|
INTO DATE lv_date
|
||||||
TIME lv_time.
|
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>Package</th>| ).
|
||||||
io_html->add( |<th>Branch name</th>| ).
|
io_html->add( |<th>Branch name</th>| ).
|
||||||
io_html->add( |<th>Creator</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( |<th></th>| ).
|
||||||
io_html->add( '</tr>' ).
|
io_html->add( '</tr>' ).
|
||||||
io_html->add( '</thead>' ).
|
io_html->add( '</thead>' ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user