Re: [Quickfix-developers] CME and week long session
Brought to you by:
orenmnero
From: Caleb E. <cal...@gm...> - 2004-09-28 14:23:44
|
On Tue, 28 Sep 2004 10:05:27 +0200, Franco Sabini <f.s...@fi...> wrote: > (I wrote my own Store to use a Sybase database trough a RendezVous adapter.) > > The mktime conversion seems to place the correct value in tm_wday. > This morning I didn't get any session reset and I'm still using the session > begun yestarday. Note that mktime expects the "struct tm" you pass it to be expressed in local time, but QuickFIX UtcTimeStamps use GMT as their basis. I think this is just a timezone conversion issue. You need to express your start and end times (and store your session creation time) in GMT, not local time. Since you've written your own store (and decoupled it from the application with a messaging middleware) there are several different places where you may be converting time formats so its really hard to tell where the problem lies precisely, but I think the code you pasted is just working around another problem. -- Caleb Epstein cal...@gm... |