[katello-devel] time in date during sync plan creation
Dmitri Dolguikh
dmitri at redhat.com
Wed Sep 12 11:30:29 UTC 2012
Hey everybody,
Came across of this bit of code in SyncPlansController#convert_date_time:
sync_event = date + ' ' + time + ' ' + DateTime.now.zone
We cannot assume that the server and the client reside in the same
timezone - the end result of this is the client has no idea when (or
what day for that matter) the sync is going to be executed. We probably
have a similar issue when showing the times too (haven't checked).
Timezone information has to come from the client. When showing time back
to the client, we either: have to convert it to their time zone, or show
it relative to UTC.
Should I add a story to the backlog for this?
-d
More information about the katello-devel
mailing list