Message Boards

How to get the list of TimeZones like in the user-admin display settings

Dominic Meyer, modified 3 Years ago.

How to get the list of TimeZones like in the user-admin display settings

New Member Posts: 2 Join Date: 11/4/19 Recent Posts

Hi all

I want to add in a portlet (Liferay 7.1x) the same TimeZone list like in the user-admin display settings.
Do you know how I get the exact same list?

Thank you for your help and regards

Dominic

 

 

thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: How to get the list of TimeZones like in the user-admin display setting

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

 Hi ,

You can use aui input tag with type as time zone

<aui:input label="time-zone" name="timeZoneId" type="timeZone" />

 

Dominic Meyer, modified 3 Years ago.

RE: How to get the list of TimeZones like in the user-admin display setting

New Member Posts: 2 Join Date: 11/4/19 Recent Posts

Thx but I need the list withouth the input field

thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: RE: How to get the list of TimeZones like in the user-admin display set

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

You can refer below for fetching list 

https://github.com/liferay/liferay-portal/blob/7.1.x/portal-web/docroot/html/taglib/ui/input_time_zone/page.jsp