Example usage for com.liferay.portal.kernel.util Time getDate

List of usage examples for com.liferay.portal.kernel.util Time getDate

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util Time getDate.

Prototype

public static Date getDate(Date date, TimeZone tz) 

Source Link

Usage

From source file:com.vportal.portlet.vcalendar.util.EventTimeComparator.java

License:Open Source License

protected Date getEndDate(CalEvent event, TimeZone timeZone) {
    if (event.isTimeZoneSensitive()) {
        return Time.getDate(CalUtil.getEndTime(event), timeZone);
    } else {// w  w w.  j a  v  a  2  s . c  om
        return CalUtil.getEndTime(event);
    }
}

From source file:com.vportal.portlet.vcalendar.util.EventTimeComparator.java

License:Open Source License

protected Date getStartDate(CalEvent event, TimeZone timeZone) {
    if (event.isTimeZoneSensitive()) {
        return Time.getDate(event.getStartDate(), timeZone);
    } else {/*from  www  .j a  v a2 s  .c o m*/
        return event.getStartDate();
    }
}