Active
Project:
Date
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2012 at 09:47 UTC
Updated:
15 Nov 2018 at 09:38 UTC
Jump to comment: Most recent
We have a installation profile with quite some modules, which one of is date_api.
They are all dependecies in the profile.info file, so they get enabled before the profile can use hook_install and set the values and based on this you get this warning:
The Date API requires that you set up the site timezone and first day of week settings and the date format [warning]
settings to function correctly.
Do you have any suggestions how to fix this in a custom install profile, or is there a way to fix this in date itself?
Comments
Comment #1
karens commentedI haven't tried this, but that message means that the variables have not been set. If you set those variables you shouldn't get any message.
Comment #2
fgmActually,
date_api_install()does not check whether the variables are defined or not, but just emits this message whatever the situation.Now, as dawehner said, this happens /before/ the profile
hook_install()implementation has a chance to run and set these variables anyway, because it occurs in the dependency processing part. However, since this check is also performed indate_api_requirements(), it could probably be moved fromdate_api_install()todate_api_requirements('install')Comment #3
karens commentedIf someone provides a patch I could apply :)
Comment #4
karens commentedComment #5
steinmb commented