Changeset 8234 for main/waeup.kofa/trunk


Ignore:
Timestamp:
20 Apr 2012, 11:27:59 (13 years ago)
Author:
Henrik Bettermann
Message:

Show only time zone name.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py

    r8194 r8234  
    233233        # Access codes have a history.
    234234        match = re.match(
    235             '^....-..-.. ..:..:.. ..... .+ - initialized by system',
     235            '^....-..-.. ..:..:.. .+ - initialized by system',
    236236            self.ac1.history)
    237237        assert match is not None
     
    300300"prefix","serial","ac","state","history"
    301301"FOO","9.99","1","0"
    302 "FOO","0","FOO-1-11111111","used","<YYYY-MM-DD hh:mm:ss TZ> - ..."
    303 "FOO","1","FOO-1-22222222","initialized","<YYYY-MM-DD hh:mm:ss TZ> - ..."
    304 "FOO","2","FOO-1-33333333","disabled","<YYYY-MM-DD hh:mm:ss TZ> - ..."
     302"FOO","0","FOO-1-11111111","used","<YYYY-MM-DD hh:mm:ss> UTC - ..."
     303"FOO","1","FOO-1-22222222","initialized","<YYYY-MM-DD hh:mm:ss> UTC - ..."
     304"FOO","2","FOO-1-33333333","disabled","<YYYY-MM-DD hh:mm:ss> UTC - ..."
    305305'''[1:]
    306306        contents = open(result_path, 'rb').read()
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py

    r8186 r8234  
    332332        if not getattr(doc, 'kofa_nodate', False):
    333333            tz = getUtility(IKofaUtils).tzinfo
    334             today = now(tz).strftime('%d/%m/%Y %H:%M:%S %z %Z')
     334            today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z')
    335335            canvas.drawString(2.2*cm, 0.5 * inch,
    336336                translate(_(u'Date: ${a}', mapping = {'a': today})))
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py

    r8186 r8234  
    210210            bedticket.bed = None
    211211            tz = getUtility(IKofaUtils).tzinfo
    212             timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %z %Z")
     212            timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %Z")
    213213            bedticket.bed_coordinates = u'-- booking cancelled on %s --' % (
    214214                timestamp,)
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r8186 r8234  
    284284          self.browser.contents)
    285285        self.assertMatches(bedticket.bed_coordinates,
    286           u' -- booking cancelled on <YYYY-MM-DD hh:mm:ss TZ> --')
     286          u' -- booking cancelled on <YYYY-MM-DD hh:mm:ss> UTC --')
    287287        # If we release a free be, nothing will happen
    288288        ctrl = self.browser.getControl(name='val_id')
  • main/waeup.kofa/trunk/src/waeup/kofa/objecthistory.py

    r8186 r8234  
    6161        msgs = self._getMessages()
    6262        tz = getUtility(IKofaUtils).tzinfo
    63         timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %z %Z")
     63        timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %Z")
    6464        user = get_current_principal()
    6565        if user is None:
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r8186 r8234  
    209209      frame_footer = Frame(1*cm,0,width-(2*cm),1*cm)
    210210      tz = getUtility(IKofaUtils).tzinfo
    211       timestamp = now(tz).strftime("%d/%m/%Y %H:%M:%S %z %Z")
     211      timestamp = now(tz).strftime("%d/%m/%Y %H:%M:%S %Z")
    212212      left_text = '<font size=10>%s</font>' % timestamp
    213213      story.append(Paragraph(left_text, style["Normal"]))
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_objecthistory.py

    r8186 r8234  
    8080        hist.addMessage('blah')
    8181        result = ''.join(hist.messages)
    82         self.assertMatches('<YYYY-MM-DD hh:mm:ss TZ> - blah by system', result)
     82        self.assertMatches('<YYYY-MM-DD hh:mm:ss> UTC - blah by system', result)
    8383
    8484    def test_add_messages_existing_principal(self):
     
    8989        hist.addMessage('blah')
    9090        result = ''.join(hist.messages)
    91         self.assertMatches('<YYYY-MM-DD hh:mm:ss TZ> - blah by Bob', result)
     91        self.assertMatches('<YYYY-MM-DD hh:mm:ss> UTC - blah by Bob', result)
    9292
    9393    def test_messages(self):
Note: See TracChangeset for help on using the changeset viewer.