I'm trying to write a small plugin to display messages on my site depending on the day. (My site is updated on a very strict schedule, and I want to display when the next post will appear)
Anyway, I'm using
current_time('timestamp') to try and get the blog's time as set in the options (as opposed to GMT or the server's time).
Unfortunately, it seems to be returning something very odd---neither the server's time, nor GMT. Perhaps it's the server's time minus the GMT offset in the options page. Either way, it's way off.
Am I doing something wrong? If there an easy way to get the time that's configured in the WordPress options page?