I'm pretty sure all the date functions this module uses are defined in Date API rather than date module, since the latter is merely for providing CCK fields.
I've checked a few of the ones that start 'date_' and they're all in Date API.
This would make testing easier, and potentially save an installed module if the user doesn't need date fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | without-todo-1372140.patch | 1.38 KB | berdir |
| #9 | change_date_dependency.patch | 1.65 KB | berdir |
| #1 | 1372140.simplenews_scheduler.date-api-dependency.patch | 457 bytes | joachim |
Comments
Comment #1
joachim commentedHere's a patch.
Comment #2
dgtlmoon commentedthis may be a left over from the drupal-5 days, i think it was initially trying to use the date calls to figure out local timezone to send on
Comment #3
joachim commentedDo you mean that it's ok to make this change?
Comment #4
miro_dietikerSeems to be fine for me.
Comment #5
joachim commentedThanks!
- #1372140 by joachim: Fixed dependency on date module to be date API instead.
Comment #7
joachim commentedThis needs forward-porting to D7.
Comment #8
joachim commentedThe module dependencies declared in our tests will need changing too.
Comment #9
berdirLet's ask testbot what he thinks about this, changed dependency.
I also simplified (D7 takes care of our dependencies automatically) and fixed (always use array_merge() with numeric keys or we lose array entries) setUp() and documented it according to the standards.
Comment #10
joachim commentedIs this todo related to this patch? It doesn't seem like it to me.
I'm happy to add it to the code anyway, but maybe as a separate commit?
Comment #11
berdirHah, you *are* picky about patch context ;) We can just as well open an issue to look into that, an issue to add a todo to fix something is kinda weird ;)
Here is a patch without it.
Comment #12
joachim commented> Hah, you *are* picky about patch context ;)
Lol... It's all about saving the kittens! :D
- #1372140 by Berdir: Fixed module dependency to be on date API, rather than date module.