Can you please post your complete PSoC project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Convert this line in main.c:
col.h = (unsigned char)((double)local_sec * 270 / 60);
col.h = (unsigned char)((double)local_sec * (double)((double)270 / (double)60));
and tell us about your observation
Thank you for reply. I have reprogrammed PSoC, however I can't test it on hardware now. I will let you know, when I will test it.