From: Lars K. <la...@kn...> - 2005-07-09 14:40:57
|
Esben Laursen <li...@hy...> schrieb:=20 >Let me start with search.txt: >At first glance there seams to be no problem, and it can be hard to see = if >I=20 >don't explain it. My problem or what ever you would call it, is that=20 >last_mod field is in GMT time always. I don't know if it should be this >way,=20 >but I know that in calendar it "detects" the server time zone setting. = That > >means that I (witch are in GMT +3 (Baghdad) time), gets a pretty early=20 >last_mod date. >Normally I would think that's okay, but as it in calendar uses the = local=20 >time, I would like either calendar to use GMT or Addressbook to use = local=20 >time. I have also noticed that the nice feature in preferences "Time = zone=20 >offset", doesn't work in addressbook. It works in Calendar. Hello Esben! I just added a short documentation to the wiki, about the contenthistory class. The class works on servertime always. The contenthistory gives you = a unique interfaces to the history of entries for calendar, addressbook and infolog.=20 The functions return the id's of entries which have added, modified and deleted since a given timestamp. For the timestamps i would suggest following logic. When you start a synchronisation, ask the server for his current timestamp(t2). Save this timestamp(t2) temporarly somewhere. Now ask for the changes since the timestamp from the last sync(t1)(maybe 0 for the first sync). This will give you all changed id's since timestamp(t1). After you have finnished your sync you store timestamp(t2) permanent and = use timestamp(t2) as timestamp(t1). Then you are independend of any local timezones. Please have a look at this page: http://egroupware.org/egroupware/wiki/index.php?page=3DContent+History The class itself is also documented. Lars -- need Groupware =3D=3D> http://www.egroupware.org hosted eGroupWare =3D=3D> http://www.officespot.de eGroupWare Training =3D=3D> http://www.outdoor-training.de/egroupware Open Business Club =3D=3D> https://www.openbc.com/hp/Lars_Kneschke/ |