Comment 10 for bug 868395

Revision history for this message
Benjamin Drung (bdrung) wrote : Re: Slow Europe/Moscow timezone

Can be reproduces with just setting the TZ environment variable:

```
apt install -y gcc tzdata
printf '#include <time.h>\n#include <stdio.h>\n\nint main() {\n time_t t = time(0);\n int i;\n struct tm result;\n for(i=0; i < 10000000; i++)\n localtime_r(&t, &result);\n puts(ctime(&t));\n return 0;\n}\n' > bug.c
gcc -o bug ./bug.c
time ./bug
time TZ=Europe/Moscow ./bug
```