Comparing two Joda-Time DateTime objects
I am dealing with something very similar to what has been asked here - compare Joda-Time time zones but it does not seem to work for me. Here's a piece of code which I am testing Joda-Time DateTime with - DateTime estDT = new DateTime(DateTimeZone.forID("America/Puerto_Rico")).withMillisOfSecond(0); DateTime londonDT = new DateTime(DateTimeZone.forID("Europe/London")).withMillisOfSecond(0); System.out.println("Comparison " + londonDT.isBefore(estDT)); System.out.println("Comparison " + londonDT.isAfter(estDT)); Interestingly enough, I get 'false' from both the sysout statements above. Can