Not sure what to suggest myself. I'm not aware of any issues like you've seen Stephen
On 2 March 2012 20:19, Dan Washusen <d...@reactive.org> wrote: > Thanks for the response. > > We're using org.joda.time.contrib.hibernate.PersistentInstantAsBigInt to > persist the Instant. I'm pretty sure that's working correctly - we have > extensive tests around the billing functionality and I've since written > excruciatingly thorough tests using the same data as the production issue > and it passes. > > I'm wondering if there may have been an issue with the leap year and date > math, it's a long shot but it's all I can think of. The following > (roughly) was executed on the 2012-03-01 20:06... > > Instant lastPayment = new Instant(1329847846391); // > 2012-02-21T18:10:46.391Z > DateTime paymentNext = new DateTime(lastPayment, > DateTimeZone.UTC).plus(Months.ONE); > > The paymentNext was then logged out (slf4j) as 2012-03-21T18:10:46.391Z > before being written to the DB (hibernate, no errors). However, the value in > the DB didn't have the new date… > > I've tried rolling back the system date on my Mac and running the same and > it all works. In production it runs on Ubuntu Server 11.10, Oracle > Java 1.6.0_26, Joda 2.0… > > > On Saturday, 3 March 2012 at 12:49 AM, Mark Carroll wrote: > > On 03/01/2012 06:02 PM, Dan Washusen wrote: > > But the value written to the DB was: 1329847846391 > > > How are you mapping DateTimes to database values? For instance, with > org.jadira.usertype.dateandtime.joda.PersistentDateTime? > > Mark > > -- > Mark Carroll > Software Engineer > mark.carr...@vecna.com > http://www.vecna.com/ > > Cambridge Research Laboratory > Vecna Medical > 36 Cambridge Park Drive > Cambridge, MA 02140 > Phone: (617) 864-0636 > Fax: (617) 864-0638 > > Better Technology, Better World (TM) > > The contents of this message may be privileged and confidential. > Therefore, if this message has been received in error, please delete it > without reading it. Your receipt of this message is not intended to > waive any applicable privilege. Please do not disseminate this message > without the permission of the author. > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest