Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 950 Bytes

readme.md

File metadata and controls

35 lines (27 loc) · 950 Bytes

Java8 java.time emulation for GWT.

How to use:

  1. You have to load js-joda and js-joda-timezone in your index.html (or any other way).
<script src="js/js-joda.min.js"></script>
<script src="js/js-joda-timezone.min.js"></script>

Also it's possible to use the same IANA timezone database for js-joda-timezone and moment.tz

<script src="js/moment.min.js"></script>
<script src="js/moment-timezone.min.js"></script>
<script type="text/javascript">moment.tz.load(JSJoda.ZoneRulesProvider.getTzdbData());</script>
  1. Add dependency to pom.xml:
<dependency>
  <groupId>com.vx.jtime</groupId>
  <artifactId>gwt-joda-java-time</artifactId>
  <version>0.0.1</version>
  <classifier>sources</classifier>
  <scope>provided</scope>
</dependency>
  1. Add to yourProject.gwt.xml:
<inherits name='com.vx.jtime.JTime' />