whiterabbitz
Forum Replies Created
-
Forum: Plugins
In reply to: [Weight Tracker] Date Picker not working on all browsersHi Again,
I have set up a vps.
Installed wp latest from wordpress dot org
changed permalinks to pages
downloaded 1.7
edited globals to imperial false
acivated 1.7
added page weight – only content [weightlosstracker]same results
wp-debug on – no errors
the code in shortcodes.php
$wpdb->insert(
$table_name,
$valuesVar dumped $values – looks ok
things I noticed:
the date on refresh in add data is in format 2015-02-19
if i don’t touch it (ie no focus) and just enter weight and note – all OK
if i use the date picker it changes format to 02/19/2015 on entering weight and notes – get date in list as 0000-00-00
Ok So I mucked around a bit…
in shortcodes.php after 154 added dateFormat: \”yy-mm-dd\”
It works!
leads to question
Probably taking local date format here we use dd/mm/yy and vps set up for Oz
Above testing on chrome
Tested Mozilla OK
Safari 5.1.7 (Latest for windows) no go..
You see the calender and can select date – it then displays “Please enter the date” you can continue and add weight and notes but on submit it opens the calender again.. AARRGGHH never liked Apple.
If you would like the url is there a way of me PMing you? Would prefer it not public..
Brian
Forum: Plugins
In reply to: [Weight Tracker] Date Picker not working on all browsersHi,
Running on localhost –
just a fresh install of WP – default theme.
Will have a look later at putting it on a vps.
FYI Line 457 in shortcodes.php
var_dump($values); // exit;
$wpdb->insert(
$table_name,
$valuesValues is good and the date is correct but date is stored as “0000-00-00 00:00:00”
wpdb->insert
defaults to string with out the format array.. Will investigate later today.Forum: Plugins
In reply to: [Weight Tracker] Date Picker not working on all browsersHi,
Thanks for the quick response.
Loaded fresh 4.1.1 WordPress
Added 1.7 plugin.
Edited globals for non imperial
added shortcut to page
Chrome – nice popup but enters date as 0000-00-00
Mozilla – Same…
Safari – Same..
Also then switched to imperial .. same.
Also – in graph all dates show 19-Feb
Thanks in advance
Brian