removed wrong compiler option
changed date handling to use Calendar instead of Date