The appended patch makes the msvc setting "integer_datetimes" propagate toecpg_config.h as well.
Joachim