<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def forward(self, channel, date_s, fragment):
 		""" 		Given an HREF in the legacy timezone, redirect to an href for UTC. 		"""

		time_s, sep, nick = fragment.rpartition('.')
		time = datetime.datetime.strptime(time_s, '%H.%M.%S')
		date = datetime.datetime.strptime(date_s, '%Y-%m-%d')
		dt = datetime.datetime.combine(date, time.time())
		loc_dt = self.timezone.localize(dt)
		utc_dt = loc_dt.astimezone(pytz.utc)
		url_tmpl = '/day/{channel}/{target_date}#{target_time}.{nick}'
		url = url_tmpl.format(
			target_date=utc_dt.date().isoformat(),
			target_time=utc_dt.time().strftime('%H.%M.%S'),
			**locals()
		)
		raise cherrypy.HTTPRedirect(url, 301)