Examples of JodaTimeContext


Examples of org.springframework.format.datetime.joda.JodaTimeContext

* @author Keith Donald
*/
public class DateTimeZoneHandlerInterceptor implements HandlerInterceptor {

  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
    JodaTimeContext context = new JodaTimeContext();
    context.setTimeZone(getTimeZone(request));
    JodaTimeContextHolder.setJodaTimeContext(context);
    return true;
  }
View Full Code Here

Examples of org.springframework.format.datetime.joda.JodaTimeContext

        return user.getTimeZone();
    }

    @Override
    protected void setParameterHolder(DateTimeZone timeZone) {
        JodaTimeContext context = new JodaTimeContext();
        context.setTimeZone(timeZone);
        JodaTimeContextHolder.setJodaTimeContext(context);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.