Giter Site home page Giter Site logo

Comments (5)

leifj avatar leifj commented on August 15, 2024

On 2015-09-18 08:11, restena-sw wrote:

I am executing

TZ=UTC ./pyff --loglevel=INFO ../etc/edugain-sp.fd

and get a resulting file with

validUntil="2015-10-18T05:58:27.063864"

but the software consuming this dataset complains that there needs to be
a trailing "Z" to indicate UTC time zone.

Other users of pyFF seem to get the timezone info. Maybe it's just
something about my python environment (in which case it would be worth
documenting it in pyFF's installation instructions). I have python 2.7.8
on openSUSE 13.2.


Reply to this email directly or view it on GitHub
#69.

This sounds like an old issue. Are you sure you are using the newest
version from github?

from pyff.

restena-sw avatar restena-sw commented on August 15, 2024

This is 0.9.4; updated with pip just this morning.

Too old?

Am 18.09.2015 um 11:16 schrieb Leif Johansson:

On 2015-09-18 08:11, restena-sw wrote:

I am executing

TZ=UTC ./pyff --loglevel=INFO ../etc/edugain-sp.fd

and get a resulting file with

validUntil="2015-10-18T05:58:27.063864"

but the software consuming this dataset complains that there needs to be
a trailing "Z" to indicate UTC time zone.

Other users of pyFF seem to get the timezone info. Maybe it's just
something about my python environment (in which case it would be worth
documenting it in pyFF's installation instructions). I have python 2.7.8
on openSUSE 13.2.


Reply to this email directly or view it on GitHub
#69.

This sounds like an old issue. Are you sure you are using the newest
version from github?


Reply to this email directly or view it on GitHub
#69 (comment).

Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473

PGP key updated to 4096 Bit RSA - I will encrypt all mails if the
recipient's key is known to me

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66

from pyff.

restena-sw avatar restena-sw commented on August 15, 2024

0.9.4 builtins.py line 888 an following state:

if offset is not None:
dt = datetime.now() + offset
e.set('validUntil', dt.isoformat())

but the .isoformat() function does NOT add a "Z" in the end. I believe this is where my problem comes from. Changing this if statement to an explicit strformat like a few lines up (massaging of the "ID" element) like this:

if offset is not None:
dt = datetime.now() + offset
e.set('validUntil', dt.strftime("%Y-%m-%dT%H:%M:%SZ"))

fixes the issues and sets the Z as it should.

I believe using isoformat() is a bug at this place and look forward to a fixed 0.9.5 :-)

from pyff.

leifj avatar leifj commented on August 15, 2024

can you verify this is a problem on HEAD (and perhaps provide a PR to fix it :-))

from pyff.

restena-sw avatar restena-sw commented on August 15, 2024

From reading master branch sources, it looks like this is indeed fixed there.

from pyff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.