Yeah, that would be another way to solve the problem. In my case I suspect it would be easier just to spend a little time and get the time on all the servers in sync.
This is one of those problems where I started by trying to wedge something into Transfer that it doesn't really do in a very natural way. In reality it may be easier to step back and solve the problem another way - like by adjusting the time sync on all the servers involved. -Cameron On Wed, May 27, 2009 at 11:08 PM, Bob Silverberg <[email protected]> wrote: > Hmm, well, this may be a crazy idea, but here's what I'd do if I > needed to accomplish what you are suggesting, which is to always > return the same, synchronized datetime value regardless of which CF > server the code was running on: > > I'd create a DateHelper object with a getNow() method that would > return a synchronized datetime. I would then inject that object into > my decorators. I could then call getNow() on the DateHelper from > within my decorator and I would know that, no matter which CF server I > was on, I'd get the same synchonized datetime value. > > I'd implement my DateHelper by having it query the database and return > getdate(), which would work for now. If you ever decided to change > your implementation to use another technique to get a synchonized > datetime, you would just have to change the internals of the > DateHelper object, and none of the rest of your code would be > affected. > > Again, this isn't necessarily something that I'd do, but off the top > of my head it sounds like it might address your requirement. -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [email protected] --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
