/*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
- * Copyright (C) 2004-2008, 2011, 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
{
VM& vm = exec->vm();
GregorianDateTime ts;
-
- double currentTime = timeClip(currentTimeMS());
- if (std::isnan(currentTime))
- return JSValue::encode(jsNaN());
-
- msToGregorianDateTime(vm, currentTime, false, ts);
+ msToGregorianDateTime(vm, currentTimeMS(), false, ts);
return JSValue::encode(jsNontrivialString(&vm, formatDateTime(ts, DateTimeFormatDateAndTime, false)));
}