src/server/plugins/postgresql/vfs.c

changeset 387
f5caf41b4db6
parent 382
9e2289c77b04
child 464
0a29110b94ec
equal deleted inserted replaced
386:b91f8efadb63 387:f5caf41b4db6
963 return 0; 963 return 0;
964 } 964 }
965 #ifdef __FreeBSD__ 965 #ifdef __FreeBSD__
966 return timelocal(&tm); 966 return timelocal(&tm);
967 #else 967 #else
968 return mktime(&tparts) - timezone; 968 return mktime(&tm) - timezone;
969 #endif 969 #endif
970 } 970 }
971 971
972 int pg_convert_timestamp_tm(const char *timestamp, struct tm *tm) { 972 int pg_convert_timestamp_tm(const char *timestamp, struct tm *tm) {
973 // TODO: this is a very basic implementation that needs some work 973 // TODO: this is a very basic implementation that needs some work

mercurial