[BugFix #660] getYMDFromCoordinate() and getCoordinateFromYMD() fixed. Fixed timescale behavior. Fixed unit-tests.
Merge pull request #753 from MichaelKalygin/bugfix660

[BugFix #660]