diff --git a/source/i18n/L10n.cpp b/source/i18n/L10n.cpp index fc2ff993e0..c822a10328 100644 --- a/source/i18n/L10n.cpp +++ b/source/i18n/L10n.cpp @@ -387,7 +387,7 @@ std::string L10n::FormatMillisecondsIntoDateString(const UDate& milliseconds, co if (U_FAILURE(status)) LOGERROR("Error creating SimpleDateFormat: %s", u_errorName(status)); - const TimeZone* timeZone = TimeZone::getGMT(); + const TimeZone* timeZone = TimeZone::createDefault(); status = U_ZERO_ERROR; Calendar* calendar = Calendar::createInstance(*timeZone, currentLocale, status); diff --git a/source/i18n/L10n.h b/source/i18n/L10n.h index 8b1b1269b3..0cc6842977 100644 --- a/source/i18n/L10n.h +++ b/source/i18n/L10n.h @@ -427,7 +427,7 @@ public: std::string LocalizeDateTime(const UDate& dateTime, const DateTimeType& type, const DateFormat::EStyle& style) const; /** - * Returns the specified date using the specified date format. + * Returns the specified date converted to the local timezone using the specified date format. * * @param milliseconds Date specified as a UNIX timestamp in milliseconds * (not seconds). diff --git a/source/i18n/scripting/JSInterface_L10n.h b/source/i18n/scripting/JSInterface_L10n.h index fa9d33c140..809148c4a8 100644 --- a/source/i18n/scripting/JSInterface_L10n.h +++ b/source/i18n/scripting/JSInterface_L10n.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Wildfire Games. +/* Copyright (C) 2016 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -153,7 +153,7 @@ namespace JSI_L10n std::vector TranslateArray(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::vector& sourceArray); /** - * Returns the specified date using the specified date format. + * Returns the specified date converted to the local timezone using the specified date format. * * This is a JavaScript interface to * L10n::FormatMillisecondsIntoDateString().