svn: 3928
@@ -1,4 +1,7 @@
#! /usr/bin/env bash
+
+export TZ=GMT
parse_date() {
echo "$1" | grep "Last Changed Date" | sed "s/Last Changed Date: \(.* \)[-+].*$/\1/"
}
@@ -1,6 +1,6 @@
#! /bin/sh
-unset TZ
rm -f ts ts.exe
gcc -o ts src/timestamp.c > /dev/null 2>&1
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
#endif
strptime(Time, Format, &ts);
free(Time);
- tim = mktime(&ts);
+ tim = timegm(&ts);
printf("%ld\n", tim);
} else if (argc == 2) { //18734563281
const time_t tm = atol(argv[1]);