/** * {@inheritDoc} */ @Override public TimeZone getLocalTimeZone() { return userTimeService.getLocalTimeZone(); }
/** * {@inheritDoc} */ @Override public boolean clearLocalTimeZone(String userId) { // Must not use && as need to clear them both. return userTimeService.clearLocalTimeZone(userId) & userLocaleService.clearLocalLocale(userId); }
public TimeZone getTimeZone() { return userTimeService.getLocalTimeZone(); }
/** * {@inheritDoc} */ public Time newTimeLocal(int year, int month, int day, int hour, int minute, int second, int millisecond) { TimeZone tz_local = userTimeService.getLocalTimeZone(); return new MyTime(this,tz_local, year, month, day, hour, minute, second, millisecond); }
protected String[] getUserTimezoneLocale() { String timeZone = userTimeService.getLocalTimeZone().getID(); // Now, get user's preferred locale String localeId = userLocaleService.getLocalLocale(); String[] timeZoneLocale = new String[] {timeZone, localeId}; return timeZoneLocale; }
/** * {@inheritDoc} */ public Time newTimeLocal(TimeBreakdown breakdown) { TimeZone tz_local = userTimeService.getLocalTimeZone(); return new MyTime(this,tz_local, breakdown); }