List of usage examples for org.joda.time.tz FixedDateTimeZone FixedDateTimeZone
public FixedDateTimeZone(String id, String nameKey, int wallOffset, int standardOffset)
From source file:org.jruby.RubyTime.java
License:LGPL
private static DateTimeZone timeZoneWithOffset(String zoneName, int offset) { if (zoneName.isEmpty()) { return DateTimeZone.forOffsetMillis(offset); } else {//w ww.ja v a 2 s. c om return new FixedDateTimeZone(zoneName, null, offset, offset); } }