From 6418c06b184760ae63de87467c67bd2e18bc5845 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 14 Jan 2014 12:35:28 +0000 Subject: [PATCH] No seconds or milliseconds, in date/times --- etemplate/js/et2_widget_date.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index a0b887cd9f..2818bc2e4f 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -207,7 +207,8 @@ var et2_date = et2_inputWidget.extend( // User blanked the box return null; } - // Convert to timestamp + // Convert to timestamp - no seconds + this.date.setSeconds(0,0); return Math.round(this.date.valueOf() / 1000); } });