Create properly-formatted POSIX TZ environment variable from EPICS_TIMEZONE.

This commit is contained in:
W. Eric Norum
2007-01-08 15:11:31 +00:00
parent ae06349563
commit 852afdc4d8

View File

@@ -525,9 +525,9 @@ Init (rtems_task_argument ignored)
else {
char posixTzBuf[40];
char *p = posixTzBuf;
p += sprintf(p, "%cST %d:%d", tz[0], minWest/60, minWest%60);
p += sprintf(p, "%cST%d:%.2d", tz[0], minWest/60, minWest%60);
if (toDst != fromDst)
p += sprintf(p, " %cDT", tz[0]);
p += sprintf(p, "%cDT", tz[0]);
epicsEnvSet("TZ", posixTzBuf);
}
}