NAME
Jifty::DateTime - a DateTime subclass that knows about Jifty users
DESCRIPTION
Jifty natively stores timestamps in the database in GMT. Dates are stored without timezone. This class loads and parses dates and sets them into the proper timezone.
new ARGS
See "new" in DateTime. After calling that method, set this object's timezone to the current user's time zone, if the current user has a method called time_zone
.
current_user_has_timezone
Return timezone if the current user has it
new_from_string STRING
Take some user defined string like "tomorrow" and turn it into a Jifty::Datetime
object. If the string appears to be a _date_, keep it in the floating timezone, otherwise, set it to the current user's timezone.