kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Wrong date in tooltip #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Edit any document (or create new one) with timestamp field, ie. "timestamp": 
1294589486
2. Save it, and find in database browser
3. Mouse click on the number, it will show tooltip with wrong date "ToDate: 
2011-1-0 17:11:26"

What is the expected output? What do you see instead?
Above example will produce tooltip with "ToDate: 2011-1-0 17:11:26" while it 
should "ToDate: 2011-1-9 17:11:26" this is because in js/collection.js:263 to 
format date string is used date object method getDay which returns day of week 
number while should be uset getDate which return day of month number.

What version of the product are you using? On what operating system?
For sure 1.0.11 and 1.0.10

Please provide any additional information below.
Attached file is patch for version 1.0.11

Original issue reported on code.google.com by karol.c...@gmail.com on 9 Jan 2011 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, didn't notice that you already have this issue submited (issue number 97)

Original comment by karol.c...@gmail.com on 9 Jan 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Fixed in SVN r20

Original comment by iwind....@gmail.com on 9 Jan 2011 at 4:49