Hadi Nategh
ab75fde5f3
Remove et2_date-timeonly_ro widget definition as it is already defined in et2_date_ro
2016-01-07 15:30:00 +00:00
Hadi Nategh
07681364f8
Add new type for date widget to show only time(in today range)/date
2015-11-12 15:46:56 +00:00
Nathan Gray
920616e37a
Calendar et2 conversion work in progress.
...
Context menu is enabled, but not all actions are fully implemented yet.
2015-06-10 21:51:28 +00:00
Nathan Gray
9e3676a8c9
Only apply year range to date only widgets, it causes times to break
2015-05-04 14:46:56 +00:00
Nathan Gray
27e2f787a1
Date widget:
...
- Add year_range attributes to set the options in the year dropdown
- Experimental min and max attributes
Custom fields:
- Allow to set attributes in options field for some widget types (not ones that lists of options)
2015-04-21 19:46:33 +00:00
Nathan Gray
17885d27af
Handle bad rounding / floating point math fun
2015-04-02 14:57:16 +00:00
Hadi Nategh
b3689526dd
Avoid collision between datepicker calendar dialog and date input field, try to use left or right free spaces
2015-02-24 15:51:30 +00:00
Hadi Nategh
56d8947ccc
Make sure the toJSON is not null before using string replace
2015-01-07 12:32:28 +00:00
Hadi Nategh
14230d10f7
Make sure there's string to be replaced
2014-12-05 11:04:42 +00:00
Ralf Becker
e4ac846d2a
add blur attribute to date-widget
2014-12-03 16:23:10 +00:00
Ralf Becker
4d80104403
allow to disable date widget with set_readonly on run-time
2014-12-02 17:19:13 +00:00
Ralf Becker
e923931fda
catch exception from unparsable date and display it empty instead
2014-11-12 19:23:47 +00:00
Hadi Nategh
9b05ccc4ad
Show both date and time for before today time.
...
- Fix mails in the list not showing date and time under date column.
2014-10-20 13:27:44 +00:00
Ralf Becker
c42802beea
fixed date-time_today widget broken after last commit
2014-10-01 04:40:19 +00:00
Ralf Becker
1a3c6985e4
fix handling of timestamps in usertime on client-side, by using date("Y-m-d\TH:i:s\Z", ts) equivalent to PHP date function we use on server-side, fixes wrong time in alarms, if server- and user-timezone differ
2014-09-30 20:12:53 +00:00
Ralf Becker
9e60cadb70
fixed date client/server protocol to always just append "Z" after seconds, so apps can compare date values
2014-09-10 10:22:55 +00:00
Ralf Becker
0404f7f272
fix IDE warning
2014-09-08 11:40:57 +00:00
Ralf Becker
f4e47c176f
* eTemplate2/all apps: fixed not displayed readonly dates outside lists (eg. created/modified dates in dialogs)
2014-09-08 11:38:02 +00:00
Ralf Becker
8c9854daa2
date widget has now api to set or get year, month, date, hours, minutes or time(stamp) and using that in calendar app.js for date manipulation
2014-09-05 10:34:37 +00:00
Ralf Becker
35f63b35d5
* Calendar: fixed freetime search to correctly read and set times from edit window
...
- fixed et2_date.set_value() to understand nummeric timestamps in usertime used on server-side (needed timezone offset)
- added new parameter-type for et2_date.set_value() string starting with + or - to add or subtract given number of seconds from current time (to not have to code that in applications)
2014-09-04 13:03:48 +00:00
Ralf Becker
df83b4dbbe
an other timezone fix for time(only) widget: this.date is on current date, changing it in get_value() to 1970-01-01, gives a time-difference, if we are currently on DST
2014-08-27 16:57:22 +00:00
Nathan Gray
6b2b686544
Fix duration parsed in wrong format if there was no choice for format.
2014-08-27 15:09:14 +00:00
Nathan Gray
55ae503923
Even more date fixes:
...
- Don't send a date (just 1970-01-01) with timeonly values
- Avoid infinite loop when setting timeonly with timepicker
2014-08-25 19:33:35 +00:00
Nathan Gray
299caf9807
More time fixes:
...
- Also accept string timestamps in Zulu time
- Fix change detection causing nextmatch filter to not work
2014-08-25 17:26:22 +00:00
Nathan Gray
4d5f5677e1
Try to correctly handle timezone offset on the other side of the world
2014-08-20 14:39:42 +00:00
Nathan Gray
ec1471c6d2
Another attempt at resolving the browser timezone issue
2014-08-19 21:22:26 +00:00
Nathan Gray
5b91e871de
Deal with languages helpfully adding timezones into timestamps
...
Fixes random (12, 6, 7) hours sometimes added to dates
2014-08-18 16:47:27 +00:00
Ralf Becker
c6783d8b8e
document hack, to work around birthdays changing one day for each time they are stored
2014-07-25 12:32:34 +00:00
Ralf Becker
970331b97c
* Addressbook/all apps: dates change every time they get stored (temporary fix as conditions causing that are not clear)
2014-07-25 10:17:15 +00:00
Nathan Gray
b6b660ee16
Fix detached date label
2014-07-22 22:22:09 +00:00
Ralf Becker
5a32a7d622
widgets should NEVER return null (eg. for empty), as server-side $preserv will overwrite it
2014-06-11 09:14:43 +00:00
Hadi Nategh
87d3a0bf28
Set date-duration display_format default to day/hour/minute
2014-05-30 13:40:13 +00:00
Ralf Becker
086501bc30
fixed .5 hours entered in infolog (PM tab) is displayed after saving as 30 days, caused by automatic transformation to minutes and not recognising that display_format does NOT support minutes
2014-05-26 13:44:24 +00:00
Hadi Nategh
ba1141f0cc
Set value for date-timeonly when it's string and NaN
2014-05-26 07:46:30 +00:00
Hadi Nategh
5b80563707
Consider other date widgets for date initialization as they could have fixed data_format too
2014-05-09 09:48:10 +00:00
Hadi Nategh
fbd35cba3f
No need to check oldValue as check for customfields condition is good enough, and it may cause other date widgets do not get parsed
2014-05-09 08:48:26 +00:00
Hadi Nategh
b6e2460e91
Set customfields "date" and "date-time" widgets value correctly when they get initiated by storage value
2014-05-08 17:48:54 +00:00
Hadi Nategh
62fa190439
Handle converting string date/time formats to Date object for date-time widget
2014-05-05 14:09:47 +00:00
Hadi Nategh
8b326fb60f
Move styling of date-durtation widget input field to specific class in etemplate2.css
2014-03-12 13:13:18 +00:00
Hadi Nategh
c43550a54b
Add proper css class to date-duration widget
2014-03-10 15:20:40 +00:00
Nathan Gray
8a3cda964e
Fix clearing date field does not fire change event
2014-03-06 21:17:37 +00:00
Hadi Nategh
1561dc1caf
Fix label attribute in date-time readonly widget
2014-02-21 12:22:33 +00:00
Ralf Becker
c8603676ef
allow 0 as empty-value for date and date-time widgets, as that is used a lot eg. in InfoLog
2014-01-30 17:18:05 +00:00
Ralf Becker
01fad19d9d
fixed just broken date-time widget and duration not accepting commas
2014-01-30 16:24:58 +00:00
Ralf Becker
d09391c0ee
fixed validation from date-timeonly and also no longer triggering change events for initial content
2014-01-30 15:30:14 +00:00
Ralf Becker
9e29d8b282
docu update to fix ide warnings and indention
2014-01-29 18:55:24 +00:00
Ralf Becker
a659b49f51
silently fix skiped minutes or times with just one digit, as parser is quite pedantic ;-)
2014-01-29 13:10:31 +00:00
Ralf Becker
db3422fccb
fixed date(-time)-picker looses changes made in textfield directly, we now bind to change of input instead using onSelect of picker
...
also changed parsing of date(-time) strings to use parser of datetimepicker with our format, instead of date object, which does not understand our formats
2014-01-29 11:27:24 +00:00
Ralf Becker
09c5ea8df5
fixed datetime widget returns march, if selecting febuary on a current date with a day >28
2014-01-29 10:18:07 +00:00
Nathan Gray
cfa981480e
Fix selecting 00:00 in datetime widget re-set to current time
2014-01-14 13:32:08 +00:00