]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't use hardcoded date and time
authorDaniel Hansson <enoch85@gmail.com>
Tue, 24 Mar 2015 12:41:55 +0000 (13:41 +0100)
committerDaniel Hansson <enoch85@gmail.com>
Tue, 24 Mar 2015 12:41:55 +0000 (13:41 +0100)
Use local time instead. http://momentjs.com/

core/js/js.js

index e65b33d86077d4797643cc0efae4961e487abbc8..00adcc514bc911e1d0a5292482f891b78cf95057 100644 (file)
@@ -1338,7 +1338,7 @@ OC.Util = {
         * @returns {string} timestamp formatted as requested
         */
        formatDate: function (timestamp, format) {
-               format = format || "MMMM D, YYYY H:mm";
+               format = format || "LLL";
                return moment(timestamp).format(format);
        },