Project

General

Profile

Actions

Feature #3663

closed

Time calculations / insert time like everywhere else ;)

Added by Susanne Moog over 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Could have
Category:
scheduler
Target version:
-
Start date:
2009-06-14
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hey,

a nice addition would be if we could enter a date like "d+7" in the date and time fields and that would be transformed to a normal date (like it is done in all the other TYPO3 core date fields).

Best regards,

Susanne


Files

scheduler_datepicker.diff (2.93 KB) scheduler_datepicker.diff Francois Suter, 2009-09-10 18:19
Actions #1

Updated by Francois Suter over 15 years ago

Hmm, I didn't know you could do this... Actually it's broken when used in conjunction with date2cal.

Anyway I'll see what I can do. TYPO3 has a lot of nifty validation features, but they are not properly encapsulated in separate libraries so it's difficult to reuse. Maybe this is the case for this rule...

Actions #2

Updated by Francois Suter over 15 years ago

  • Status changed from New to Accepted
  • Assignee set to Francois Suter

I realised I knew where it was coming from just after I replied. It's done by JavaScript, which transforms e.g. "d+3" into a timestamp, which is written in a hidden field. And that hidden field is the value used by TCEmain (and not the actual input field).

The Gabriel BE module did load all that JS, which was required quite a few calls and a pretty byzantine way of selecting fields, a hidden field for writing the timestamp, etc. Which is why I scrapped all that stuff, because it's just so complicated and inconvenient to use. I'll check if I can do the same server-side.

Actions #3

Updated by Francois Suter about 15 years ago

Attaching patch by Steffen Kamper for adding the new core datepicker. This still does not allow input as mentioned in the original import, but at least improves date-time input

Actions #4

Updated by Francois Suter about 15 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

I have added the ExtJS datepicker to the date fields using Steffen's patch. I consider this a sufficient enhancement, as I would really like to avoid loading all that old JS from the core.

I'm going to mark this issue as solved. Susanne, feel free to complain if you're not satisfied ;-)

Actions #5

Updated by Francois Suter over 12 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Michael Stucki almost 11 years ago

  • Category set to scheduler
Actions #7

Updated by Michael Stucki almost 11 years ago

  • Project changed from 739 to TYPO3 Core
  • Category changed from scheduler to scheduler
Actions

Also available in: Atom PDF