How to update zoneinfo without opkg?

I have the "Timezone database is corrupt" error on PHP. If I set TimeZone to UTF - the error disappears.
So I think I need to update zoneinfo. How to do this if my firmware doesn't have opkg?

You download the files, use archival tools to de-pack them and manually copy the various zoneinfo files to the correct locations.
(In other words, you perform manually the steps done by opkg.)

Heh. Wherefrom download?

From the OpenWrt packages download repo for your router.
From the same place opkg would download them...

So far you have not mentioned the router mode or the OpenWrt version in use, so this is pure example. See the downloadable zoneinfo package files (*.ipk) here:

OpenWrt master, for ipq806x:

https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/

19.07.2, ar71xx or ath79:
https://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/packages/

Thanks.
But that wasn't the problem.
The solution to "Timezone database is corrupt" error on PHP is to have the zoneinfo-REGION package (zoneinfo-europe_2019b-1_mipsel_24kc.ipk for me), not only zoneinfo-core package.
PHP DateTime require it.

  1. Go to https://downloads.openwrt.org/releases/19.07.2/packages/
  2. Find your platform. How does it? If you build firmware from the source - go to bin/packages directory. If not - I don't know.
  3. Go to downloads.openwrt.org/releases/19.07.2/packages/PLATFORM/packages
  4. Download the package
  5. De-pack it: tar zxpvf package.ipk
  6. Copy the content of data.tar.gz to destination

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.