Re: [Dhis2-devs] weeks calculation

2009-05-13 Thread Murodullo Latifov
Hi, It worth looking if java uses DHIS locale or it uses system locale for Calendar. I think if java is not set to use any locale, it will turn to OS locale, if this is the case two machines running DHIS as server with different locales will end up with two different week calculations, if loc

Re: [Dhis2-devs] weeks calculation

2009-05-13 Thread Bob Jolliffe
with the first week in the year being the first >> Wednesday after Easter :-) >> >> Regards >> Bob >> >> > --- >> > Regards, >> > Saptarshi PURKAYASTHA >> > Director R & D, HISP India >> > Health Information Systems Prog

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Saptarshi Purkayastha
> > Saptarshi PURKAYASTHA > > Director R & D, HISP India > > Health Information Systems Programme > > > > My Tech Blog: http://sunnytalkstech.blogspot.com > > You Live by CHOICE, Not by CHANCE > > > > > > 2009/5/12 Murodullo Latifov > >> > &

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Bob Jolliffe
tp://sunnytalkstech.blogspot.com > You Live by CHOICE, Not by CHANCE > > > 2009/5/12 Murodullo Latifov >> >> Hi Caveman, >> >> >> >> - Original Message >> From: Orvalho Joaquim Augusto >> To: Bob Jolliffe >> Cc: dhis2-de

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Saptarshi Purkayastha
Hi Caveman, > > > > - Original Message > From: Orvalho Joaquim Augusto > To: Bob Jolliffe > Cc: dhis2-devs > Sent: Tuesday, May 12, 2009 2:08:43 PM > Subject: Re: [Dhis2-devs] weeks calculation > > Well > > Yes this a problem for us. Because we expect to use correctl

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Murodullo Latifov
Hi Caveman, - Original Message From: Orvalho Joaquim Augusto To: Bob Jolliffe Cc: dhis2-devs Sent: Tuesday, May 12, 2009 2:08:43 PM Subject: Re: [Dhis2-devs] weeks calculation Well Yes this a problem for us. Because we expect to use correctly DHIS [reporting tools for now] and

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Orvalho Joaquim Augusto
Well Bob Jolliffe wrote: Hi cave persons 2009/5/11 Murodullo Latifov : How dhis2 calculate the weeks? The first week of a year for example. Weekly periods are calculated based on their start date. If start date of the given week is on the previous year, end date of that period is used. Als

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Bob Jolliffe
> > I think you can modify code to work correctly as long as it does not change > start and end date generated in period table. DHIS weeks start at Sunday and > end by Saturday, at least in Mozambique database, how did you come to Monday > - Sunday? > > regards, > murod > >From WeeklyPeriodType

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Murodullo Latifov
Hi Bob, - Original Message From: Bob Jolliffe To: dhis2-devs Sent: Tuesday, May 12, 2009 12:52:58 PM Subject: Re: [Dhis2-devs] weeks calculation Hi cave persons 2009/5/11 Murodullo Latifov : > How dhis2 calculate the weeks? The first week of a year for example. > > Weekl

Re: [Dhis2-devs] weeks calculation

2009-05-12 Thread Bob Jolliffe
Hi cave persons 2009/5/11 Murodullo Latifov : > How dhis2 calculate the weeks? The first week of a year for example. > > Weekly periods are calculated based on their start date. If start date of the > given week is on the previous year, end date of that period is used. Also > Saturday is used a

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Orvalho Joaquim Augusto
Ahh.. :-) Thanks Caveman Bob Jolliffe wrote: 2009/5/11 Orvalho Joaquim Augusto : Thank for this helpfull ofert. I talk within your words. Bob Jolliffe wrote: Hi Orvalho 2009/5/11 Orvalho Joaquim Augusto : Well this comment is interesting. And the question raises from my needs here. I am

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Bob Jolliffe
2009/5/11 Orvalho Joaquim Augusto : > Thank for this helpfull ofert. > > I talk within your words. > > Bob Jolliffe wrote: >> >> Hi Orvalho >> >> 2009/5/11 Orvalho Joaquim Augusto : >>> >>> Well this comment is interesting. >>> >>> And the question raises from my needs here. I am moving data from a

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Orvalho Joaquim Augusto
Thank for this helpfull ofert. I talk within your words. Bob Jolliffe wrote: Hi Orvalho 2009/5/11 Orvalho Joaquim Augusto : Well this comment is interesting. And the question raises from my needs here. I am moving data from a not dhis2 system to dhis2. And we must do it weekly because dhis2

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Bob Jolliffe
Hi Orvalho 2009/5/11 Orvalho Joaquim Augusto : > Well this comment is interesting. > > And the question raises from my needs here. I am moving data from a not > dhis2 system to dhis2. And we must do it weekly because dhis2 is not yet > adopted. > > I noticed that I had weeks changed on dhis2. Do

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Orvalho Joaquim Augusto
Well this comment is interesting. And the question raises from my needs here. I am moving data from a not dhis2 system to dhis2. And we must do it weekly because dhis2 is not yet adopted. I noticed that I had weeks changed on dhis2. And now to adjust to dhis2 I need to know how dhis2 does. A

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Bob Jolliffe
Hi 2009/5/11 Murodullo Latifov : > > Hi Caveman, > > > > - Original Message > From: Orvalho Joaquim Augusto > To: dhis2-devs > Sent: Monday, May 11, 2009 2:57:42 AM > Subject: [Dhis2-devs] weeks calculation > > I could not find on dhis2 docs so I am asking: > > How dhis2 calculate the w

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Orvalho Joaquim Augusto
Thanks! That is really usefull. Caveman Murodullo Latifov wrote: Hi Caveman, - Original Message From: Orvalho Joaquim Augusto To: dhis2-devs Sent: Monday, May 11, 2009 2:57:42 AM Subject: [Dhis2-devs] weeks calculation I could not find on dhis2 docs so I am asking: How dhis2 c

Re: [Dhis2-devs] weeks calculation

2009-05-11 Thread Murodullo Latifov
Hi Caveman, - Original Message From: Orvalho Joaquim Augusto To: dhis2-devs Sent: Monday, May 11, 2009 2:57:42 AM Subject: [Dhis2-devs] weeks calculation I could not find on dhis2 docs so I am asking: How dhis2 calculate the weeks? The first week of a year for example. Weekly peri