Added bringing window to foreground on alarm. Fixed date representation.