display proper timestamps on time-x-axis
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-DM2K/dm2kApp/jpt/XYAxis.c new-DM2K/dm2kApp/jpt/XYAxis.c
--- old-DM2K/dm2kApp/jpt/XYAxis.c 2022-06-25 21:20:27.353895001 +0200
+++ new-DM2K/dm2kApp/jpt/XYAxis.c 2022-06-25 21:20:27.353895001 +0200
@@ -725,7 +725,7 @@
default : unit = 1;
}
first = next = pp->time_base;
- xtm = gmtime(&next);
+ xtm = localtime(&next);
inc = (int)(ac->tic_values[0] - pp->raw_bounding_box.xmin);
if (inc==0) {
strftime(str, TMSTR_MAXLEN, pp->time_format, xtm);
@@ -746,7 +746,7 @@
break;
default:
first = pp->time_base + unit * inc;
- xtm = gmtime(&(first));
+ xtm = localtime(&(first));
}
strftime(str, TMSTR_MAXLEN, pp->time_format, xtm);
ac->tic_label_string[0] = XtNewString(str);
@@ -775,7 +775,7 @@
default:
next = first + unit *
((int) (ac->tic_values[nti] - ac->tic_values[0]));
- xtm = gmtime(&(next));
+ xtm = localtime(&(next));
}
strftime(str, TMSTR_MAXLEN, pp->time_format, xtm);
ac->tic_label_string[nti] = XtNewString(str);
@@ -807,7 +807,7 @@
default:
next = first + unit *
((int) (ac->tic_values[nti] - ac->tic_values[0]));
- xtm = gmtime(&(next));
+ xtm = localtime(&(next));
}
strftime(str, TMSTR_MAXLEN, pp->time_format, xtm);
ac->tic_label_string[nti] = XtNewString(str);
patch ba6f0edcbb1bc044146ed92bd8e1c6236deb4c2b
Author: Thomas Birke <thomas.birke@helmholtz-berlin.de>
Date: Mon Apr 9 11:50:03 CEST 2018
* display proper timestamps on time-x-axi