[Qgis-user] localisation of date fails in QGIS 3.2

Nyall Dawson nyall.dawson at gmail.com
Wed Aug 8 23:42:12 PDT 2018


On Thu, 9 Aug 2018 at 16:39, Reginald Carlier
<Reginald.Carlier at ingelmunster.be> wrote:
>
> Hi Nyall,
>
> Somehow my post shows the code but my previous post doesn't.
> Anyway this is how the code looks:
>
> vandaag = datetime.now()
> dag = vandaag.day
> maand = vandaag.strftime("%B")
> jaar = vandaag.year
> datum = str(dag) + " " + maand + " " + str(jaar)
>
> I suspect that maybe strftime changed in python 3.6?

Do you see the same from a standalone python console? (I'm not sure
that this issue is related to QGIS at all or whether it's a Python
specific thing).

Nyall



More information about the Qgis-user mailing list