Fixing getCurrentDateTime