- 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>
- 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>
- Add to yourProject.gwt.xml:
<inherits name='com.vx.jtime.JTime' />