def format_day(self, day):
        daydate = datetime(self.year, self.month, day)
        weekday = utils.weekdayname_abbr(
            self.context, self.request, utils.shift_day(daydate.weekday())
        )

        return ', '.join((
            weekday,
            utils.localize_date(daydate, long_format=False)
        ))
Example #2
0
    def format_day(self, day):
        daydate = datetime(self.year, self.month, day)
        weekday = utils.weekdayname_abbr(
            self.context, self.request, utils.shift_day(daydate.weekday())
        )

        return ', '.join((
            weekday,
            utils.localize_date(daydate, long_format=False)
        ))
 def format_day(self, day):
     daydate = date(self.year, self.month, day)
     weekday = utils.weekdayname_abbr(
         self.context, self.request, utils.shift_day(daydate.weekday())
     )
     return weekday + daydate.strftime(', %d. %m')
 def format_day(self, day):
     daydate = date(self.year, self.month, day)
     weekday = utils.weekdayname_abbr(self.context, self.request, utils.shift_day(daydate.weekday()))
     return weekday + daydate.strftime(", %d. %m")