summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--management/editor/editor.go2
-rw-r--r--system/admin/static/common/js/util.js7
2 files changed, 3 insertions, 6 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 49e412c..13043d3 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -48,7 +48,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
<div class="row">
<div class="input-field col s6">
<label class="active">MM</label>
- <select class="month __ponzu">
+ <select class="month __ponzu browser-default">
<option value="0">Jan - 01</option>
<option value="1">Feb - 02</option>
<option value="2">Mar - 03</option>
diff --git a/system/admin/static/common/js/util.js b/system/admin/static/common/js/util.js
index cf47af4..7bd821d 100644
--- a/system/admin/static/common/js/util.js
+++ b/system/admin/static/common/js/util.js
@@ -46,13 +46,10 @@ function getPartialTime(unix) {
function getPartialDate(unix) {
var date = new Date(unix);
var d = {};
+
d.yyyy = date.getFullYear();
- var month = date.getMonth()+1;
- if (month < 10) {
- month = "0" + String(month);
- }
- d.mm = month;
+ d.mm = date.getMonth()+1;
var day = date.getDate();
if (day < 10) {