Topic: Date and Time in Date_row
Using Date_row function with date picker can we input both Date and Time?
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → FA Modifications → Date and Time in Date_row
Using Date_row function with date picker can we input both Date and Time?
What happens if you change the data type from 'date' to 'datetime' or 'timestamp'? MySQL
Not sure how FA will read stored value though???
I tried changing the datatype of the field from date -> datetime in mysql. It gives me two options (ON UPDATE) AND (CURRENT TIMESTAMP). I tried both cases
After changing this data type the behaviour of FA remains unchanged while the value being stored at database is like this
2018-07-04 00:00:00
No input is taken from FA for the Time.
I may have led you astray a little - sorry
Something like -
datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
Should give the time when you select the date from the datepicker
But do you want to input the time manually? I believe you will still need datetime but also changes to core
Yes, I want to input time manually. What could be the changes?
I would start here:-
File: \includes\ui\ui_view.inc
969: function get_js_date_picker()
And
File: \includes\ui\ui_view.inc
1247: function calendarDrawTable() {
Quite difficult for me to edit Javascript
My js is non-existent, I had a quick look at datepicker / time picker libraries (there's lots)... its not a simple mod.
What exactly do you want to achieve?
Time functionalities are not programmed in existing FA. If you wish to use date and time picker you need to find a JavaScript or jQuery plugin to use and then you need to disable the FA date picker and use the new one. But you have to change some programs to maintain FA date formats into the new plugin formats.
FrontAccounting forum → FA Modifications → Date and Time in Date_row
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.